[GH-ISSUE #569] Microsoft Azure OpenAI error #332

Closed
opened 2026-02-22 18:18:59 -05:00 by yindo · 3 comments
Owner

Originally created by @Mirgiacomo on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/569

Hi,

When I try to use Azure OpenAI I get this error.
What could it be?
I get this error from console:
TypeError: this.openai.streamChatCompletions is not a function

image image

image

Originally created by @Mirgiacomo on GitHub (Jan 11, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/569 Hi, When I try to use Azure OpenAI I get this error. What could it be? I get this error from console: _TypeError: this.openai.streamChatCompletions is not a function_ <img width="781" alt="image" src="https://github.com/Mintplex-Labs/anything-llm/assets/22151717/85476ce3-68a7-40de-be6f-732d8868acba"> <img width="417" alt="image" src="https://github.com/Mintplex-Labs/anything-llm/assets/22151717/a502bc99-775e-4cd1-8dc9-6b7edca74190"> ![image](https://github.com/Mintplex-Labs/anything-llm/assets/22151717/cc7f154d-3b47-48f0-89dc-79a759b166bc)
yindo added the questionpossible bug labels 2026-02-22 18:18:59 -05:00
yindo closed this issue 2026-02-22 18:18:59 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jan 11, 2024):

Can you verify the following?

  • How are you running AnythingLLM (local dev, docker, docker on remote machine, etc)

  • What tag & digest hash (if on Docker) or commit is your running instance of AnythingLLM is on?

@timothycarambat commented on GitHub (Jan 11, 2024): Can you verify the following? - How are you running AnythingLLM (local dev, docker, docker on remote machine, etc) - What `tag` & `digest` hash (if on Docker) or `commit` is your running instance of AnythingLLM is on?
Author
Owner

@timothycarambat commented on GitHub (Jan 11, 2024):

connect #518

If you are behind 75dd86967c then this explains why. We bumped Azureopenai from 1.0.0-beta.3 => ^1.0.0-beta.101

streamChatCompletion was not a function on the @azure/openai package on the previous .3 version. I have a feeling you are on local development and pulled in the latest, but did not update the packages post-pull.

cd into frontend collector and server and run yarn in each folder to ensure you have all the latest packages that AnythingLLM requires.

@timothycarambat commented on GitHub (Jan 11, 2024): connect #518 If you are behind 75dd86967c661ef6f883fe5f03c66d6bb823b234 then this explains why. We bumped Azureopenai from `1.0.0-beta.3` => `^1.0.0-beta.101` `streamChatCompletion` was not a function on the `@azure/openai` package on the previous `.3` version. I have a feeling you are on local development and pulled in the latest, but did not update the packages post-pull. `cd` into `frontend` `collector` and `server` and run `yarn` in each folder to ensure you have all the latest packages that AnythingLLM requires.
Author
Owner

@Mirgiacomo commented on GitHub (Jan 12, 2024):

I confirm what you said, I had the updated sources but had not updated the libraries.
Now Azure OpenAI is working properly.
Thank you

@Mirgiacomo commented on GitHub (Jan 12, 2024): I confirm what you said, I had the updated sources but had not updated the libraries. Now Azure OpenAI is working properly. Thank you
yindo changed title from Microsoft Azure OpenAI error to [GH-ISSUE #569] Microsoft Azure OpenAI error 2026-06-05 14:34:45 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#332