-
Notifications
You must be signed in to change notification settings - Fork 259
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Language
Javascript/Typescript
Version
v2-preview
Description
When using OpenAIChatModel, environment variables for proxy are ignored.
// OpenAI model setup
const model = new OpenAIChatModel({
apiKey: process.env.AZURE_OPENAI_API_KEY!,
endpoint: process.env.AZURE_OPENAI_ENDPOINT!,
apiVersion: process.env.AZURE_OPENAI_API_VERSION!,
model: process.env.AZURE_OPENAI_DEPLOYMENT_NAME!,
});The connection to model is internally handled by @teams.openai package which doesn't use environment proxy
Reproduction Steps
1.Set https_proxy, proxy and no_proxy env variables
2.Run sample chat app with OpenAIChatModel
3.The connection is done without proxyMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working