zed icon indicating copy to clipboard operation
zed copied to clipboard

Azure OpenAI Support

Open vivekrp opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

Does Zed support Azure OpenAI? If not please add the support.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

vivekrp avatar Nov 28 '23 20:11 vivekrp

Hey @vivekrp, we don't currently have support for any models outside of a few from OpenAI. We do intend to add other services in after our code is public and open sourced.

JosephTLyons avatar Dec 04 '23 16:12 JosephTLyons

Azure OpenAI has the same models just a different endpoint. Same api as OpenAI I believe.

Just adding this context as supporting azure OpenAI is not the same supporting completely different providers like Anthropic (to my understanding 😀)

sheldonhull avatar Jan 26 '24 14:01 sheldonhull

we self host our 'Assistant' OpenAI API-like LLM on a private server. Azure support and others, or just having a custom endpoint, would be hugely beneficial.

tecandrew avatar Jan 26 '24 22:01 tecandrew

Azure OpenAI has the same models just a different endpoint. Same api as OpenAI I believe.

This is correct, it is the exact same models.

Having an option to customize the endpoint which currently seem to be specified in OPEN_AI_API_URL in crates/ai/src/providers/open_ai.rs and the authentication header, is enough to support OpenAI models in Azure.

Businesses that already rely on Microsoft for data processing are likely to favor Azure as it would be covered under the same contracts, potentially broadening the user base for the assistant panel significantly.

Xtrah avatar Jan 28 '24 21:01 Xtrah

It's better to provide a config for OPEN_AI_API_URL

gtn1024 avatar Feb 05 '24 03:02 gtn1024

Just tried using this with azure openai, but can't seem to get it working. Looking at the recent implementation for open_api_url, it may because from the azure docs, we need to supply an api-version after chat/completions - which isn't possible with the implementation.

See the azure docs that I'm referring to here - https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions

jgrant95 avatar Feb 22 '24 21:02 jgrant95

I would also like to know if it is possible to configure the Azure OpenAI API and what the settings are.

FabianHertwig avatar Feb 23 '24 08:02 FabianHertwig

If anyone still wants to try Azure, I have a very hacky PR/branch for it: https://github.com/zed-industries/zed/pull/8493/

I don't have an Azure API key to test with so please let me know if it works 🙇

tombailey avatar Feb 27 '24 15:02 tombailey

seems this PR broken in latest version , azure openai cannot connect

eggcaker avatar Mar 26 '24 22:03 eggcaker