jesselau76 / ebook-GPT-translator

Enjoy reading with your favorite style.
https://jesselau.com
MIT License
1.63k stars 210 forks source link

不能用了 #66

Open ChimmyJay opened 9 months ago

ChimmyJay commented 9 months ago

錯誤如下 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 commented 9 months ago

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

WenhaoYou1 commented 8 months ago

change api_base to api_type can fix this problem