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

ChatGPT (OpenAI)填了API引擎测试失败不知道是哪里设置不对 #199

Open
mavsill opened this issue Jan 4, 2024 · 2 comments
Open

Comments

@mavsill
Copy link

mavsill commented Jan 4, 2024

安装的是最新的Rolling Release版插件。通用开了代理填了地址端口并测试通,用DeepL (free)引擎测试可以翻译,但换成ChatGPT (OpenAI)填上自己账号下的API(在别的地方试过可以使用)测试就翻译不了了,求助谢谢。

Traceback (most recent call last):,
  File "calibre_plugins.ebook_translator.components.engine", line 66, in translate_text
    translation = self.translator.translate(text)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.chatgpt", line 94, in translate
    return self.get_result(
           ^^^^^^^^^^^^^^^^
  File "calibre_plugins.ebook_translator.engines.base", line 217, in get_result
    raise Exception(
Exception: 无法解析返回的响应。原始数据:

Traceback (most recent call last):
  File "calibre_plugins.ebook_translator.engines.base", line 204, in get_result
    br.open(request)
  File "mechanize/_mechanize.py", line 257, in open
  File "mechanize/_mechanize.py", line 313, in _mech_open
mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 404: Not Found

{
    "error": {
        "message": "The model `gpt-4` does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4.",
        "type": "invalid_request_error",
        "param": null,
        "code": "model_not_found"
    }
}
@bookfere
Copy link
Owner

bookfere commented Jan 4, 2024

你填写的 API 密钥是否有访问 GTP4 模型的权限?

@mavsill
Copy link
Author

mavsill commented Jan 4, 2024

你填写的 API 密钥是否有访问 GTP4 模型的权限?

有的。

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