Skip to content

Commit

Permalink
fix(azure-openai): streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
arielweinberger committed Oct 22, 2023
1 parent b75bd2d commit 4963d8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/unillm-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unillm",
"version": "0.1.0-alpha.2",
"version": "0.1.0",
"main": "./index.ts",
"type": "commonjs",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion packages/unillm-node/providers/azure-openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ export class AzureOpenAIProvider extends BaseProvider<Providers.AzureOpenAI> {
}

async createChatCompletionStreaming(
model: ModelTypes[Providers.AzureOpenAI],
_model: ModelTypes[Providers.AzureOpenAI],
params: UnifiedCreateChatCompletionParamsStreaming,
): Promise<UnifiedCreateChatCompletionStreamResult> {
const [, model] = _model.split("/");
const { baseParams } = this.processUnifiedParamsToAzureOpenAIFormat(params);

const originalStreamResponse = this.client.listChatCompletions(
model,
params.messages,
Expand Down

0 comments on commit 4963d8f

Please sign in to comment.