openai-translator / bob-plugin-openai-translator

基于 ChatGPT API 的文本翻译、文本润色、语法纠错 Bob 插件,让我们一起迎接不需要巴别塔的新时代!Licensed under CC BY-NC-SA 4.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: undefined is not an object (evaluating 'apiKeys.split')

yigengjiang opened this issue · comments

Please search before asking

  • I searched in the issues and found nothing similar.

Please read README

  • I have read the usage instructions section in README in detail.

Please check your network and OpenAI API quota

  • I am sure it is not a network issue or an OpenAI API quota issue.

OpenAI Translator Bob Plugin version

v0.3.0

系统版本 | System version

macOS 11.5.2

Bob version

Bob 1.1.0[60]

复现步骤 | Reproduce step

1.选择下面这句话,使用bob翻译

Thank you very much for your feedback!

你看到了什么错误?What errors do you see?

2.输出如下
image

你期望看到什么?What did you expect to see?

3.OpenAI Translator的输出应该同上面的腾讯翻译君,即“非常感谢您的反馈!”

还有其他的内容吗?Anything else?

No response

你是否愿意提交一份 PR 来修改这个错误?Are you willing to submit a PR?

  • 我愿意提供 PR! I'm willing to submit a PR!

问题解决了。
报错原因是我把Open AI的 API KEY填写到了API URL里去了,导致API KEY里是空着的。
解决方法是先撤销,然后把API KEY填写到API KEY里去即可😂