Skip to content

OpenAI API 接入增加环境变量 SIYUAN_OPENAI_API_BASE_URL #7604

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

Closed
88250 opened this issue Mar 8, 2023 · 3 comments
Closed

OpenAI API 接入增加环境变量 SIYUAN_OPENAI_API_BASE_URL #7604

88250 opened this issue Mar 8, 2023 · 3 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Mar 8, 2023

比如可以配置为 https://你的代理域名/v1,默认值为 https://api.openai.com/v1

PS:

  1. 使用 Cloudflare Workers 解决 OpenAI 和 ChatGPT 的 API 无法访问的问题
  2. SIYUAN_OPENAI_API_PROXY 和上述代理方案选其中一种就可以,不然多层代理后网络响应时间会变长
@88250 88250 added this to the 2.7.9 milestone Mar 8, 2023
@88250 88250 self-assigned this Mar 8, 2023
@88250 88250 closed this as completed Mar 8, 2023
@WyInnovate
Copy link

牛哇,大佬,我去测测,谢谢

@WyInnovate
Copy link

@88250
SIYUAN_OPENAI_API_BASE_URL
非常好用,大佬牛批!
目前出现了一个问题,/AI Chat后,斜杠仍然存在,强迫症感觉好碍眼,示例如下:
/
你是谁?
我是AI智能助手,专门为用户提供自然语言交互服务的计算机程序。

@l987845225
Copy link

cf部署之后卡的可以试试腾讯云
[使用腾讯云函数一分钟搭建 OpenAI]

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

3 participants