Open blackchoey opened 6 days ago
Javascript/Typescript
latest
I got follow error when using azureADTokenProvider OpenAIError: Missing credentials. Please pass one of apiKey and azureADTokenProvider, or set the AZURE_OPENAI_API_KEY environment variable.
azureADTokenProvider
apiKey
AZURE_OPENAI_API_KEY
Use azureADTokenProvider as follow
Run the app
Found the root cause, this line sets the wrong parameter: https://github.com/microsoft/teams-ai/blob/main/js/packages/teams-ai/src/models/OpenAIModel.ts#L234
Language
Javascript/Typescript
Version
latest
Description
I got follow error when using
azureADTokenProvider
OpenAIError: Missing credentials. Please pass one ofapiKey
andazureADTokenProvider
, or set theAZURE_OPENAI_API_KEY
environment variable.Reproduction Steps
Use
azureADTokenProvider
as followRun the app