这是indexloc提供的服务,不要输入任何密码
Skip to content

[feat]支持配置AZURE #107

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

[feat]支持配置AZURE #107

wants to merge 3 commits into from

Conversation

senga07
Copy link

@senga07 senga07 commented May 13, 2025

conf.yaml配置示例如下:

OPENAI/AZURE 仅保留一个

BASIC_MODEL:
OPENAI:
base_url: https://ark.cn-beijing.volces.com/api/v3
model: "doubao-1-5-pro-32k-250115"
api_key: xxx
AZURE:
base_url: https://xxx-openai-service-3.openai.azure.com/
model: "gpt-4o"
api_version: 2025-01-01-preview
api_key: xxx

@CLAassistant
Copy link

CLAassistant commented May 13, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ sjhuang05
❌ senga07


sjhuang05 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@clin421
Copy link

clin421 commented May 13, 2025

我也发现了这个问题,计划什么时候merge?

@MagicCube
Copy link
Collaborator

需要两位签署一下 CLA

@MagicCube
Copy link
Collaborator

另外,还需要贡献一下 docs/configuration_guide.md

Comment on lines +37 to +41
os.environ.update({
"OPENAI_API_VERSION": llm_config.get("api_version"),
"AZURE_OPENAI_API_KEY": llm_config.get("api_key"),
"AZURE_OPENAI_ENDPOINT": llm_config.get("base_url")
})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

5 participants