anything-llm
anything-llm copied to clipboard
Microsoft Azure OpenAI error
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
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) orcommit
is your running instance of AnythingLLM is on?
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.
I confirm what you said, I had the updated sources but had not updated the libraries. Now Azure OpenAI is working properly. Thank you