chrisyy2003 / nonebot-plugin-gpt3

A nonebot plugin base on OpenAI API (gpt-3.5-turbo)
112 stars 16 forks source link

提示:账号密码错误或账号被冻结 #50

Open feiTiAnZhUBaJiE opened 1 year ago

feiTiAnZhUBaJiE commented 1 year ago

powershell启动go-cqhttp的时候提示账号密码错误或账号被冻结,但是我账号密码都正确,而且扫码登录也是相同的提示

TwoOnefour commented 1 year ago

这个请去cqhttp 的issue发吧,这里是插件,顺带一提建议更换protocol试试

feiTiAnZhUBaJiE commented 1 year ago

好的谢谢,这个问题已经解决了。现在遇到了新的问题 都配置好之后,发送信息“gpt3 你好”,得到的回复只有一个“error”,没有任何报错信息,这个是什么情况,是代理的问题吗

TwoOnefour commented 1 year ago

可以提供nonebot2终端运行时候的日志吗

feiTiAnZhUBaJiE commented 1 year ago

是控制台的日志吗

TwoOnefour commented 1 year ago

是的

feiTiAnZhUBaJiE commented 1 year ago

好的稍等

feiTiAnZhUBaJiE commented 1 year ago

是这个吗

feiTiAnZhUBaJiE commented 1 year ago

发送信息是这样的: image

TwoOnefour commented 1 year ago

你的api key打码一下,然后能否看看你的代理日志

feiTiAnZhUBaJiE commented 1 year ago

代理日志在哪里看呢

feiTiAnZhUBaJiE commented 1 year ago

你说的应该是这个把 image

TwoOnefour commented 1 year ago

是的,你先清除

feiTiAnZhUBaJiE commented 1 year ago

这个是我刚刚发信息然后生成的日志

feiTiAnZhUBaJiE commented 1 year ago

消息框里回复我error,日志上面有打印访问记录

TwoOnefour commented 1 year ago

稍等一下

feiTiAnZhUBaJiE commented 1 year ago

好的

TwoOnefour commented 1 year ago

你先试试这样

import requests
openai.api_key = "xxx"
openai.proxy = {
  "http": "http://127.0.0.1:{clash_port}"
}
completion = openai.ChatCompletion.create(
        model="gpt-3.5-turbo",
        messages="hello"
    ))
print(completion.choices[0].message["content"])
TwoOnefour commented 1 year ago

看看返回

feiTiAnZhUBaJiE commented 1 year ago

行我试试

TwoOnefour commented 1 year ago

你可以直接新建一个文件,然后粘贴进去运行

TwoOnefour commented 1 year ago

噢,忘记说了,如果你是没有openai库的话是不能这样的

feiTiAnZhUBaJiE commented 1 year ago

正在尝试,pycharm不知道抽什么风了,在重新导包

feiTiAnZhUBaJiE commented 1 year ago

image

feiTiAnZhUBaJiE commented 1 year ago

改成 Completion 之后,如下 image

TwoOnefour commented 1 year ago

emm,应该是超额度或者没钱了什么的吧

feiTiAnZhUBaJiE commented 1 year ago

好像key调用限制了

feiTiAnZhUBaJiE commented 1 year ago

我去看看,先谢谢你啦

TwoOnefour commented 1 year ago

不客气

feiTiAnZhUBaJiE commented 1 year ago

但是没超额啊、、、 image

feiTiAnZhUBaJiE commented 1 year ago

挠头

TwoOnefour commented 1 year ago

再试试这个

import openai
openai.api_key = "xxx"
openai.proxy = {
  "http": "http://127.0.0.1:5206"
}
openai.Completion.create(
  model="text-davinci-003",
  prompt="Say this is a test",
  max_tokens=7,
  temperature=0
)
TwoOnefour commented 1 year ago

我看出来了,你的额度过期了

TwoOnefour commented 1 year ago

image

feiTiAnZhUBaJiE commented 1 year ago

啊这,好吧我懂了/(ㄒoㄒ)/~~

feiTiAnZhUBaJiE commented 1 year ago

谢谢你

TwoOnefour commented 1 year ago

不客气