Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jun 27, 2024
1 parent aa81d9a commit a92445f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/langchain-openai/src/azure/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
OpenAIChatInput,
OpenAICoreRequestOptions,
} from "../types.js";
import { OpenAIClient } from "../index.js";

export class AzureChatOpenAI extends ChatOpenAI {
_llmType(): string {
Expand Down Expand Up @@ -56,7 +55,7 @@ export class AzureChatOpenAI extends ChatOpenAI {
*/
invocationParams(
options?: this["ParsedCallOptions"]
): Omit<OpenAIClient.Chat.ChatCompletionCreateParams, "messages"> {
) {
const openaiInvocationParams = super.invocationParams(options);
// remove the `stream_options` field as it is not supported by the Azure API
delete openaiInvocationParams.stream_options;
Expand Down

0 comments on commit a92445f

Please sign in to comment.