-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Theia AI] Support Azure OpenAI #14711
Comments
Hi @fipro78, Thanks for the report! As the If you need Azure support right now in your Theia based application, then it's probably easiest to rebind the |
@sdirix I am trying to follow your suggestion to see if my approach would work. Unfortunately I can extend
As I don't know how to fix this (not sure if the class is even exported so it can be extended) I simply copied the whole code and modified only the places that need to be changed. I am trying to rebind my custom manager, but it is somehow not used. Can you tell me what I am doing wrong?
|
Hi @fipro78, Happy to help!
In Theia it's normal to do deep imports. That's possible as we don't do any bundling in the published packages. So to import the
Note In some packages the import from
I think there is a mixup of functionalities here. The To achieve this you should create a backend-module and in there invoke the rebind, for example like this:
You don't need to customize the RPC connection handling. When the frontend asks for the proxy service of the In fact you don't need to customize the frontend at all, at least not for the discussed changes here ;) To integrate your backend module with Theia, you then need to declare it in your Hope this helps. Let me know if anything does not work for you. |
Feature Description:
We host an OpenAI gpt-4o model in Azure and wanted to connect Theia AI via OpenAI Compatible Models as described here https://theia-ide.org/docs/user_ai/#openai-compatible-models-eg-via-vllm
This doesn't work. I always get
After searching around for the cause, we noticed that the issue is related to OpenAI on Azure. This is shortly described in openai-node GitHub
We created a small node project to verify this. When using the
OpenAI
class in our small reproducer, we also get the404
error when trying to access the Azure OpenAI resource. Switching to theAzureOpenAI
class in the reproducer, the issue is gone and we get a correct response.While looking into the Theia sources, I think we narrowed the issue down to OpenAiModel.
Either there needs to be some configuration to specify that Azure OpenAI is tried to access, and based on that use either
OpenAI
orAzureOpenAI
. But that also means that the result needs to be parsed differently as far as we saw. Another option would be a new ai-azureopenai module. But I am not sure if this would be too much of copied code.The text was updated successfully, but these errors were encountered: