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

能否添加 openai 的url链接 #63

Open
snoopy996 opened this issue Jul 7, 2023 · 2 comments
Open

能否添加 openai 的url链接 #63

snoopy996 opened this issue Jul 7, 2023 · 2 comments

Comments

@snoopy996
Copy link

能否添加 openai 的url链接

比如我用第三方的 openai api

@okanikubay
Copy link

image
加一行就可以了,我这里能用

@cosmoswafer
Copy link

cosmoswafer commented Jan 8, 2024

最新的openai sdk似乎不能這樣設置了,我是改環境變量,例如:

os.environ["OPENAI_BASE_URL"] = "https://api.openai.com/v1"

import openai

不過colab裏也不能import openai了,會報錯。我是在本地運行的,可能要測試一下。

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

No branches or pull requests

3 participants