Comments (20)
知道怎么回事了,正在修。
from chineseaidungeonchatgpt.
那我看一下吧。能发下操作系统还有python版本吗。
from chineseaidungeonchatgpt.
@zxypro1 是否方便看下这个问题呀
from chineseaidungeonchatgpt.
auth的问题貌似是api更新导致的,可以尝试pip install chatgptpy --upgrade
更新一下包。
下面那个tkinter的问题貌似只会在windows平台以及第一次运行app时出现。待我具体看看是怎么回事。
另外Mac貌似会出现杀进程的情况。不知道是只有我的mac这样还是普遍现象。
from chineseaidungeonchatgpt.
尝试了更新chatgptpy,并不能解决问题
from chineseaidungeonchatgpt.
auth的问题貌似是api更新导致的,可以尝试
pip install chatgptpy --upgrade
更新一下包。 下面那个tkinter的问题貌似只会在windows平台以及第一次运行app时出现。待我具体看看是怎么回事。 另外Mac貌似会出现杀进程的情况。不知道是只有我的mac这样还是普遍现象。
我的mac也有来着,不清楚为什么
from chineseaidungeonchatgpt.
操作系统的win10,python版本是3.9.13
from chineseaidungeonchatgpt.
已合并,在试一下吧@quecaaa
from chineseaidungeonchatgpt.
下面的情况解决了,但是上面仍然提示
[OpenAI][8][CRITICAL] Access Token: Not found Auth0 did not issue an access token.
[OpenAI][9] Attempting to get access token from: https://chat.openai.com/api/auth/session
[OpenAI][9] Access Token: Not found, Please try again with a proxy (or use a new proxy if you are using one)
但是我进入https://chat.openai.com/api/auth/session里面却可以看到access token
from chineseaidungeonchatgpt.
似乎出现了新的情况:
Exception in thread Thread-1:
Traceback (most recent call last):
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 165, in get_chat_text
response = response.text.splitlines()[-4]
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 178, in get_chat_text
raise Exception(
Exception: Missing necessary credentials
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\study\python\Anaconda3\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "E:\study\python\Anaconda3\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "E:\gm\new\ChineseAiDungeonChatGPT-main\app.py", line 297, in _on_enter_pressed
self._insert_message(msg, "你")
File "E:\gm\new\ChineseAiDungeonChatGPT-main\app.py", line 312, in _insert_message
self.story_teller.action(msg)
File "E:\gm\new\ChineseAiDungeonChatGPT-main\story.py", line 68, in action
resp = self.chatbot.get_chat_response(prompt) # Sends a request to the API and returns the response by OpenAI
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 223, in get_chat_response
return self.get_chat_text(data)
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 182, in get_chat_text
raise Exception("Not a JSON response") from exc2
Exception: Not a JSON response
from chineseaidungeonchatgpt.
暂时还没遇到过这个错,一会详细看下
from chineseaidungeonchatgpt.
Auth0的问题貌似是一个api only的问题,可以关注一下我们使用的api库关于这个的讨论#17,我也在看这个问题的原因。
那个新情况可以说一下是怎么出现的吗? @quecaaa
from chineseaidungeonchatgpt.
我下载了新的code,运行之后输入验证码,显示的是
[OpenAI][8][CRITICAL] Access Token: Not found Auth0 did not issue an access token.
[OpenAI][9] Attempting to get access token from: https://chat.openai.com/api/auth/session
[OpenAI][9] Access Token: Not found, Please try again with a proxy (or use a new proxy if you are using one)
Credentials have been refreshed.
这时候出现背景设定框,选择确认之后出现
(None, None)
{'Authorization': None}
不过背景倒是打出来了,随便输入内容后确定,出现
Exception in thread Thread-3:
Traceback (most recent call last):
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 165, in get_chat_text
response = response.text.splitlines()[-4]
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 178, in get_chat_text
raise Exception(
Exception: Missing necessary credentials
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\study\python\Anaconda3\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "E:\study\python\Anaconda3\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "E:\gm\new\ChineseAiDungeonChatGPT-main\app.py", line 297, in _on_enter_pressed
self._insert_message(msg, "你")
File "E:\gm\new\ChineseAiDungeonChatGPT-main\app.py", line 312, in _insert_message
self.story_teller.action(msg)
File "E:\gm\new\ChineseAiDungeonChatGPT-main\story.py", line 68, in action
resp = self.chatbot.get_chat_response(prompt) # Sends a request to the API and returns the response by OpenAI
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 223, in get_chat_response
return self.get_chat_text(data)
File "E:\study\python\Anaconda3\lib\site-packages\revChatGPT\revChatGPT.py", line 182, in get_chat_text
raise Exception("Not a JSON response") from exc2
Exception: Not a JSON response
一直在获取chatGPT回复
from chineseaidungeonchatgpt.
那就是没有获取到token。是一直这样还是偶尔出现?
from chineseaidungeonchatgpt.
其实也还是Auth0的问题。
from chineseaidungeonchatgpt.
一直都是这样,使用默认的token也是
from chineseaidungeonchatgpt.
那应该要用proxy了。等下更新吧。
from chineseaidungeonchatgpt.
我看pychatgpt中有了proxy 所以proxy直接设置一个外网代理服务器就可以么
那应该要用proxy了。等下更新吧。
from chineseaidungeonchatgpt.
@JackeyWang777 根据pychatgpt的文档应该是填本地的host。但是现在由于openai的更新,pychatgpt已经用不了了。先等等吧。
from chineseaidungeonchatgpt.
closing
from chineseaidungeonchatgpt.
Related Issues (20)
- 望推荐 HOT 3
- 感觉可玩性不高啊,竟然可以自己随意篡改剧情影响走向 HOT 4
- 执行命令后无反应 HOT 15
- 其实可以尝试规训一下,比如在background加句“不允许过于厉害的招数”啥的。
- 可以考虑更改一下库。 HOT 2
- 无法安装依赖 HOT 3
- python3 example_story.py报错 HOT 3
- example_story.py和app.pyd HOT 2
- 完全弄不明白怎么玩,里面的各种什么什么.PY一个都打不开诶 HOT 5
- Failed to refresh session是token过期了吗? HOT 1
- ModuleNotFoundError: No module named 'revChatGPT.revChatGPT' HOT 10
- ModuleNotFoundError: No module named 'revChatGPT.revChatGPT' HOT 1
- AttributeError: 'Chatbot' object has no attribute 'get_chat_response' HOT 4
- 依赖安装好为什么运行app.py没有反应呢 HOT 3
- Can you guys launch your own version of GPT3.5? HOT 1
- 可以存档吗? HOT 10
- pip3 install -r requirements.txt这一部分错误了 HOT 2
- 可以提供api吗 HOT 6
- 使用官方api接口出错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chineseaidungeonchatgpt.