Git Product home page Git Product logo

Comments (20)

zxypro1 avatar zxypro1 commented on August 23, 2024 2

知道怎么回事了,正在修。

from chineseaidungeonchatgpt.

zxypro1 avatar zxypro1 commented on August 23, 2024 1

那我看一下吧。能发下操作系统还有python版本吗。

from chineseaidungeonchatgpt.

bupticybee avatar bupticybee commented on August 23, 2024

@zxypro1 是否方便看下这个问题呀

from chineseaidungeonchatgpt.

zxypro1 avatar zxypro1 commented on August 23, 2024

auth的问题貌似是api更新导致的,可以尝试pip install chatgptpy --upgrade更新一下包。
下面那个tkinter的问题貌似只会在windows平台以及第一次运行app时出现。待我具体看看是怎么回事。
另外Mac貌似会出现杀进程的情况。不知道是只有我的mac这样还是普遍现象。

from chineseaidungeonchatgpt.

quecaaa avatar quecaaa commented on August 23, 2024

尝试了更新chatgptpy,并不能解决问题

from chineseaidungeonchatgpt.

bupticybee avatar bupticybee commented on August 23, 2024

auth的问题貌似是api更新导致的,可以尝试pip install chatgptpy --upgrade更新一下包。 下面那个tkinter的问题貌似只会在windows平台以及第一次运行app时出现。待我具体看看是怎么回事。 另外Mac貌似会出现杀进程的情况。不知道是只有我的mac这样还是普遍现象。

我的mac也有来着,不清楚为什么

from chineseaidungeonchatgpt.

quecaaa avatar quecaaa commented on August 23, 2024

操作系统的win10,python版本是3.9.13

from chineseaidungeonchatgpt.

zxypro1 avatar zxypro1 commented on August 23, 2024

已合并,在试一下吧@quecaaa

from chineseaidungeonchatgpt.

quecaaa avatar quecaaa commented on August 23, 2024

下面的情况解决了,但是上面仍然提示
[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.

quecaaa avatar quecaaa commented on August 23, 2024

似乎出现了新的情况:
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.

bupticybee avatar bupticybee commented on August 23, 2024

暂时还没遇到过这个错,一会详细看下

from chineseaidungeonchatgpt.

zxypro1 avatar zxypro1 commented on August 23, 2024

Auth0的问题貌似是一个api only的问题,可以关注一下我们使用的api库关于这个的讨论#17,我也在看这个问题的原因。
那个新情况可以说一下是怎么出现的吗? @quecaaa

from chineseaidungeonchatgpt.

quecaaa avatar quecaaa commented on August 23, 2024

我下载了新的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.

zxypro1 avatar zxypro1 commented on August 23, 2024

那就是没有获取到token。是一直这样还是偶尔出现?

from chineseaidungeonchatgpt.

zxypro1 avatar zxypro1 commented on August 23, 2024

其实也还是Auth0的问题。

from chineseaidungeonchatgpt.

quecaaa avatar quecaaa commented on August 23, 2024

一直都是这样,使用默认的token也是

from chineseaidungeonchatgpt.

zxypro1 avatar zxypro1 commented on August 23, 2024

那应该要用proxy了。等下更新吧。

from chineseaidungeonchatgpt.

JackeyWang777 avatar JackeyWang777 commented on August 23, 2024

我看pychatgpt中有了proxy 所以proxy直接设置一个外网代理服务器就可以么

那应该要用proxy了。等下更新吧。

from chineseaidungeonchatgpt.

zxypro1 avatar zxypro1 commented on August 23, 2024

@JackeyWang777 根据pychatgpt的文档应该是填本地的host。但是现在由于openai的更新,pychatgpt已经用不了了。先等等吧。

from chineseaidungeonchatgpt.

bupticybee avatar bupticybee commented on August 23, 2024

closing

from chineseaidungeonchatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.