Skip to content

Azure OpenAI AI support #8095

Closed
Closed
@syan2018

Description

@syan2018

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

Activity

88250

88250 commented on Apr 26, 2023

@88250
reopened this on May 30, 2023
changed the title [-]Azure OpenAI Support[/-] [+]Azure OpenAI AI support[/+] on Sep 25, 2023
BopSun

BopSun commented on Jan 19, 2024

@BopSun

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

88250

88250 commented on Jan 19, 2024

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

88250 commented on Feb 15, 2024

@88250
Member

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

88250

88250 commented on Feb 15, 2024

@88250
Member

image

Donjae-Wang

Donjae-Wang commented on Feb 20, 2024

@Donjae-Wang

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

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

88250

88250 commented on Feb 21, 2024

@88250
Member

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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@syan2018@BopSun@Donjae-Wang

      Issue actions

        Azure OpenAI AI support · Issue #8095 · siyuan-note/siyuan