You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying out the example from README, except that I use AzureChatOpenAI instead of ChatAnthropic
Here is how I init the model
const model = new AzureChatOpenAI({
model: "gpt-4o-mini",
temperature: 0,
maxRetries: 2,
azureOpenAIApiKey: process.env.AZURE_OPENAI_API_KEY, // In Node.js defaults to process.env.AZURE_OPENAI_API_KEY
azureOpenAIApiInstanceName: process.env.AZURE_OPENAI_API_INSTANCE_NAME, // In Node.js defaults to process.env.AZURE_OPENAI_API_INSTANCE_NAME
azureOpenAIApiDeploymentName: process.env.AZURE_OPENAI_API_DEPLOYMENT_NAME, // In Node.js defaults to process.env.AZURE_OPENAI_API_DEPLOYMENT_NAME
azureOpenAIApiVersion: process.env.AZURE_OPENAI_API_VERSION, // In Node.js defaults to process.env.AZURE_OPENAI_API_VERSION
});
The first app.invoke call works fine, but the second one throws error.
I am trying out the example from README, except that I use AzureChatOpenAI instead of ChatAnthropic
Here is how I init the model
The first app.invoke call works fine, but the second one throws error.
My package.json dependencies:
The text was updated successfully, but these errors were encountered: