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

不能用了 #66

Open
ChimmyJay opened this issue Nov 21, 2023 · 2 comments
Open

不能用了 #66

ChimmyJay opened this issue Nov 21, 2023 · 2 comments

Comments

@ChimmyJay
Copy link

錯誤如下
Traceback (most recent call last): File "C:\Users\Fater\Desktop\py\ebook-GPT-translator\text_translation.py", line 169, in <module> print("未检测到OpenAI API 代理,当前使用api地址为: " + openai.api_base) ^^^^^^^^^^^^^^^ AttributeError: module 'openai' has no attribute 'api_base'. Did you mean: 'api_type'?

@henriquepiresmartins
Copy link

You need to specify in your settings.cfg file on the line openai-proxy = 0.

@WenhaoYou1
Copy link

change api_base to api_type can fix this problem

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