Skip to content
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

Azure OpenAI AI support #8095

Closed
syan2018 opened this issue Apr 24, 2023 · 7 comments
Closed

Azure OpenAI AI support #8095

syan2018 opened this issue Apr 24, 2023 · 7 comments
Assignees
Milestone

Comments

@syan2018
Copy link

syan2018 commented Apr 24, 2023

In what scenarios do you need this feature?

https://learn.microsoft.com/en-us/azure/ai-services/openai/reference

Azure的OpenAI接口更原生OpenAI接口有一定区别,目前没法直接配置使用,希望能予以支持

Describe the optimal solution

openai.api_type = "azure"
openai.api_base = "https://technicaldesigner.openai.azure.com/"
openai.api_version = "2023-03-15-preview"
openai.api_key = 

model = AzureChatOpenAI(
    openai_api_base = openai.api_base,
    openai_api_version = openai.api_version,
    openai_api_key = openai.api_key,
    openai_api_type = openai.api_type,
    deployment_name = "TestChat",
)

调用AzureOpenAI需要增补部署名、apitype、接口版本等属性

Describe the candidate solution

No response

Other information

No response

@88250

This comment was marked as outdated.

@88250 88250 closed this as completed Apr 26, 2023
@88250 88250 reopened this May 30, 2023
@88250 88250 changed the title Azure OpenAI Support Azure OpenAI AI support Sep 25, 2023
@BopSun
Copy link

BopSun commented Jan 19, 2024

现在这个问题还未解决对么?

@88250
Copy link
Member

88250 commented Jan 19, 2024 via email

@88250 88250 self-assigned this Feb 15, 2024
@88250 88250 added this to the 3.0.0 milestone Feb 15, 2024
88250 added a commit that referenced this issue Feb 15, 2024
@88250
Copy link
Member

88250 commented Feb 15, 2024

由于我这里没有条件进行测试,新版本发布后还麻烦大家帮忙测试,谢谢。

@88250 88250 closed this as completed Feb 15, 2024
@88250
Copy link
Member

88250 commented Feb 15, 2024

image

@Donjae-Wang
Copy link

Donjae-Wang commented Feb 20, 2024

感谢作者增加azure支持,不过我在切换到azure之后没有找到填写部署名、apitype、接口版本这些属性的地方,请问一下这个该在哪里填写,如果在API 基础地址中填写完整的URL也仍然报错,我在gpt_acadimic中是可以正常使用的

还有每次启动之后都会跳转回openAI,CPU是M1pro 系统 14.3.1

@88250
Copy link
Member

88250 commented Feb 21, 2024

@Donjae-Wang 现在设置有问题,下个版本改进 #10390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants