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

如何把api.openai.com地址改成国内的中转地址和密钥 #14

Open
dx1995 opened this issue May 10, 2024 · 3 comments
Open

如何把api.openai.com地址改成国内的中转地址和密钥 #14

dx1995 opened this issue May 10, 2024 · 3 comments

Comments

@dx1995
Copy link

dx1995 commented May 10, 2024

我试了修改config.py里的地址,新建的./py文件里添加openai_api_key=XXX和openai_api_base = XXX之类的,但运行还是提示无法连上api.openai.com,最后我把openai文件夹里的地址都改了也不行哎。

@dx1995
Copy link
Author

dx1995 commented May 13, 2024

pygame.error: dsp: No such audio device

@lei195827
Copy link

老哥这问题你解决了吗?我现在也还是这样报错

@lei195827
Copy link

    我找到src/langup/utils/mixins.py在        openai.api_key = config.openai_api_key后面加上就可以了

    openai.api_base = config.openai_api_base

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

2 participants