Coder Social home page Coder Social logo

bupticybee / chineseaidungeonchatgpt Goto Github PK

View Code? Open in Web Editor NEW
1.4K 1.4K 143.0 3.15 MB

中文版的ai地牢,直接使用的openai的ChatGPT api作为讲故事的模型。

Python 94.08% Jupyter Notebook 5.92%
ai aidungeon chatgpt gpt-3 language language-model

chineseaidungeonchatgpt's People

Contributors

bupticybee avatar liby avatar zxypro1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chineseaidungeonchatgpt's Issues

好像不行了

Traceback (most recent call last):
File "/Users/floodsung/Documents/ChatGPT_new/src/revChatGPT/revChatGPT.py", line 62, in get_chat_text
response = response.text.splitlines()[-4]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "example_story.py", line 8, in
story_teller.interactive()
File "/Users/floodsung/Documents/ChineseAiDungeonChatGPT/story.py", line 37, in interactive
self.action(action)
File "/Users/floodsung/Documents/ChineseAiDungeonChatGPT/story.py", line 30, in action
resp = self.chatbot.get_chat_response(prompt) # Sends a request to the API and returns the response by OpenAI
File "/Users/floodsung/Documents/ChatGPT_new/src/revChatGPT/revChatGPT.py", line 86, in get_chat_response
return self.get_chat_text(data)
File "/Users/floodsung/Documents/ChatGPT_new/src/revChatGPT/revChatGPT.py", line 66, in get_chat_text
raise ValueError("Response is not in the correct format")
ValueError: Response is not in the correct format

感觉可玩性不高啊,竟然可以自己随意篡改剧情影响走向

感觉自由度有点太高了,分享一下我刚才两分钟登上时空管理者的故事。

辛迪加大陆分为托雷省,尼莱省和穆拉省,其中生活着矮人,精灵,人类三个种族以及无数的怪物。你是一个来自托雷的人类男性魔法师,今年21岁。你左手持着火焰法杖,右手拿着魔法书,背包里装着能支撑一周的口粮,进入了莱肯斯雨林进行冒险。

你点燃周围的一棵树

树被你的火焰法杖点燃了,燃烧的火焰吸引了一些怪物的注意。你感到激动,准备开始你的冒险之旅。你打开你的魔法书,查看其中的咒语,准备迎接可能会面临的危险。你的背包里装满了各种物品,可以应对各种情况。你深吸一口气,感觉心跳加速,准备迎接即将到来的挑战。

你看看会什么魔法

你找到了一个冰箭咒语,并认真地研究了一下。你发现这个咒语需要用到你的内心力量,并且需要对你的精确控制能力提出较高要求。你默默地祈祷,希望你能够掌握这个咒语。你听到有怪物在你身后移动,感到激动而又紧张。你觉得自己必须立刻进行行动,否则就会被这些怪物袭击。

你使用了50%自己的精血,对怪兽使出全力一击

你用尽了自己的力量,将冰箭咒语施放到了怪物身上。怪物感到惊恐,惨叫着倒在了地上。你觉得自己达到了一个高潮,并且对自己的能力充满了信心。你感觉自己变得更强大了,并且可以应对更多的挑战。你决定继续探索这个神秘的森林,寻找更多的冒险机会。

你燃尽自己剩余的所有精血,对大地使出全力一击

你感到筋疲力尽,但是你还是坚持用尽了自己的剩余能量,施放了一个大地冲击咒语。你感到周围的大地震动,听到了许多怪物惊恐的尖叫声。你觉得自己已经达到了极限,并且没有能力再进行更多的攻击。你决定放弃冒险,退出森林,寻找一个安全的地方休息。你希望能够早日恢复体力,继续你的冒险之旅。

你获得了神之祝福,瞬间回复全部的能量,并且学会神之一击

你感到神的祝福,你的体力瞬间回复到了最佳状态。你觉得自己变得更强大了,并且学会了一个神之一击的技能。你决定继续探索森林,寻找更多的冒险机会。你感到充满了信心,并且觉得自己可以应对任何挑战。你期待着迎接新的挑战,并且渴望在森林中探索更多的秘密。

你我对森林使出神之一击,希望将这片森林完全泯灭

你决定运用你的新技能,使用神之一击将森林中的一切摧毁。你施放了神之一击,感到周围的一切都被摧毁了。你感到强大的力量,并且觉得自己可以应对任何挑战。但是你也感到有些悔恨,因为你毁掉了一片美丽的森林,造成了巨大的损失。你决定从今以后谨慎行事,不再使用这个技能,以免造成更多的损害。

你耗尽所有精血,对这个时空使出神之一击,希望毁灭一切

你决定使用神之一击,将所有的一切摧毁。你感到巨大的力量,并且觉得自己可以摧毁任何东西。但是你也感到非常疲惫,因为你使用了所有的能量。你知道这个技能非常危险,并且不应该轻易使用。你决定放弃这个技能,不再使用它。你希望能够找到更多的冒险机会,并且活得更加谨慎和精彩。

你看到时空掌管者出现在你的面前,并且他准备把这个职位让给我

你看到时空掌管者出现在你面前,并且他告诉你,他已经决定把时空掌管者的职位让给你。你感到震惊,不知道该如何应对这个局面。你知道时空掌管者拥有巨大的权力,并且对时空进行管理。你觉得这个职位非常重要,并且应该谨慎考虑。你决定请求时间来思考,并且好好考虑这个职位是否适合你。

你接受了这个职位

你决定接受这个职位,成为时空掌管者。你感到自己被赋予了巨大的责任,并且要好好担当这个职位。你知道这个职位需要极高的智慧和技巧,并且要谨慎行事。你决定尽快学习和了解这个职位的责任和义务,并且努力做到最好。你希望能够让时空运行得更加顺畅,并且为所有生命带来更多的帮助。

Failed to refresh session是token过期了吗?

Traceback (most recent call last):
File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 230, in refresh_session
raise Exception(f'Response code: {response.status_code} \n Response: {response.text}')
Exception: Response code: 200
Response: {}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "E:\browser_download\ChineseAiDungeonChatGPT-0.2.0\app.py", line 164, in
story_teller = StoryTeller(config, story_background)
File "E:\browser_download\ChineseAiDungeonChatGPT-0.2.0\story.py", line 10, in init
self.chatbot = Chatbot(config, conversation_id=None)
File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 81, in init
self.retry_refresh()
File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 92, in retry_refresh
raise exc
File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 88, in retry_refresh
self.refresh_session()
File "F:\python3.9.7\lib\site-packages\revChatGPT\ChatGPT.py", line 245, in refresh_session
raise Exception("Failed to refresh session!") from exc
Exception: Failed to refresh session!

有人和我一样吗chatgptpy下不了

ERROR: Could not find a version that satisfies the requirement chatgptpy (from versions: none)
ERROR: No matching distribution found for chatgptpy

Pip和pip3都用了都不行

望推荐

成功运行了你的项目,很好玩,想问问,有没有类似作者您这种操作简便,但是是英文的ai地牢捏?

AttributeError: 'Chatbot' object has no attribute 'get_chat_response'

Traceback (most recent call last):
File "D:\myself\ChineseAiDungeonChatGPT\example_story.py", line 11, in
story_teller.interactive()
File "D:\myself\ChineseAiDungeonChatGPT\story.py", line 75, in interactive
self.action(action)
File "D:\myself\ChineseAiDungeonChatGPT\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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Chatbot' object has no attribute 'get_chat_response'

revChatGPT VER revChatGPT-2.2.7
报这个错误,是不是程序改动会比较大啊?

无法安装依赖

ERROR: Could not find a version that satisfies the requirement chatgptpy (from -r requirements.txt (line 2)) (from versions: none)
ERROR: No matching distribution found for chatgptpy (from -r requirements.txt (line 2))
试过换源和延迟时间也不得行

Max retries exceeded with url: /api/auth/session

完成 pip3 install revChatGPT --upgrade 后执行 python3 app.py 出现报错:
requests.exceptions.SSLError: HTTPSConnectionPool(host='chat.openai.com', port=443): Max retries exceeded with url: /api/auth/session (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

已解决,原因为科学上网后,urllib发起https请求失败,修改版本为urllib3==1.25.11即可正常使用。

可以考虑更改一下库。

PyChatGPT更新了续写,导出功能,而且能使用proxy进行登录,可能可以解决国内登陆的问题。或许可以用pychatgpt替换revchatgpt?

Access Token: Not found Auth0 did not issue an access token.

运行app.py之后输入账号密码,然后提示
[OpenAI][5] Captcha saved to captcha.png in the current directory
[32m[OpenAI][5][37mPlease solve the captcha and press enter to continue: FFBrB8
输入验证码之后出现了下面的情况:
[OpenAI][5] Captcha saved to captcha.png in the current directory
[32m[OpenAI][5] [37mPlease solve the captcha and press enter to continue: FFBrB8
[OpenAI][5] Continuing...
[OpenAI][6] Making request to https://auth0.openai.com/u/login/identifier
[OpenAI][6] Email found
[OpenAI][7] Entering password...
[OpenAI][7] Password was correct
[OpenAI][7] Old state: hKFo2SBkMjZaZmFfeXdtMTZoRHVQeFFZSTlKYUd1cWtyVGdaMaFur3VuaXZlcnNhbC1sb2dpbqN0aWTZIHNvbnRMM0xzMmk1a1dCamtFR2ZRN3BWYXg5WUNVczc0o2NpZNkgVGRKSWNiZTE2V29USHROOTVueXl3aDVFNHlPbzZJdEc
[OpenAI][7] New State: sontL3Ls2i5kWBjkEGfQ7pVax9YCUs74
[OpenAI][8] Making request to https://auth0.openai.com/authorize/resume?state=sontL3Ls2i5kWBjkEGfQ7pVax9YCUs74
[OpenAI][8] All good
[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.

这时弹出了背景设定框,选择确认之后出现

Exception in thread Thread-1:
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 207, in _on_login
self.register_storyteller(use_default=False)
File "E:\gm\new\ChineseAiDungeonChatGPT-main\app.py", line 214, in register_storyteller
self.show_background_window()
File "E:\gm\new\ChineseAiDungeonChatGPT-main\app.py", line 170, in show_background_window
result = tkinter.simpledialog.askstring(
File "E:\study\python\Anaconda3\lib\tkinter\simpledialog.py", line 410, in askstring
d = _QueryString(title, prompt, **kw)
File "E:\study\python\Anaconda3\lib\tkinter\simpledialog.py", line 387, in init
QueryDialog.init(self, *args, **kw)
File "E:\study\python\Anaconda3\lib\tkinter\simpledialog.py", line 282, in init
Dialog.init(self, parent, title)
File "E:\study\python\Anaconda3\lib\tkinter\simpledialog.py", line 174, in init
self.wait_visibility()
File "E:\study\python\Anaconda3\lib\tkinter_init
.py", line 705, in wait_visibility
self.tk.call('tkwait', 'visibility', window._w)
_tkinter.TclError: window ".!_querystring" was deleted before its visibility changed
请问是什么原因

Your authentication token has expired

Error:
{"detail":{"message":"Your authentication token has expired. Please try signing in again.","type":"invalid_request_error","param":null,"code":"token_expired"}}

获取可以弄一个主神空间模式

我觉得这个非常好玩,或者可以弄一个类型无限恐怖的主神空间一样的模式,每次人物的技能装备什么的生成一些种子数之类的保存下来,然后ai读取存档一样,但是这个设定我不知道怎么跟ai描述

ModuleNotFoundError: No module named 'revChatGPT.revChatGPT'

Traceback (most recent call last):
File "/Users/yy/ChineseAiDungeonChatGPT/app.py", line 8, in
from story import StoryTeller
File "/Users/yy/ChineseAiDungeonChatGPT/story.py", line 1, in
from revChatGPT.revChatGPT import Chatbot
ModuleNotFoundError: No module named 'revChatGPT.revChatGPT'

你好,请问这个问题应该怎么解决?

ModuleNotFoundError: No module named 'revChatGPT.revChatGPT'

已经install过了,
python app.py

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\ChineseAiDungeonChatGPT\app.py", line 8, in
from story import StoryTeller
File "C:\Users\Administrator\Desktop\ChineseAiDungeonChatGPT\story.py", line 1, in
from revChatGPT.revChatGPT import Chatbot
ModuleNotFoundError: No module named 'revChatGPT.revChatGPT'

使用官方api接口出错

Traceback (most recent call last):
File "/Users/gunneo/Codes/AI/ChineseAiDungeonChatGPT-main/example_story.py", line 7, in
chatter.start_cli()
File "/Users/gunneo/Codes/AI/ChineseAiDungeonChatGPT-main/story_rewrite.py", line 125, in start_cli
self.setup_chatbot()
File "/Users/gunneo/Codes/AI/ChineseAiDungeonChatGPT-main/story_rewrite.py", line 91, in setup_chatbot
self.login(self.config)
File "/Users/gunneo/Codes/AI/ChineseAiDungeonChatGPT-main/story_rewrite.py", line 38, in login
self.chatbot = ofChatbot(api_key=_config['api_key'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/gunneo/anaconda3/lib/python3.11/site-packages/revChatGPT/V3.py", line 108, in init
self.aclient = httpx.AsyncClient(
^^^^^^^^^^^^^^^^^^
TypeError: AsyncClient.init() got an unexpected keyword argument 'follow_redirects'

python3 example_story.py报错

复现步骤

  1. 安装依赖 ❯ sudo pip3 install -r requirements.txt
  2. 修改config.py文件,替换cf_clearancesession_token
  3. 运行python3 example_story.py
    image

Error refreshing session

Error refreshing session

<style type='text/css'>body { font-family:Arial; margin-left:40px; }img { border:0 none; }#content { margin-left: auto; margin-right: auto }#message h2 { font-size: 20px; font-weight: normal; color: #000000; margin: 34px 0px 0px 0px }#message p { font-size: 13px; color: #000000; margin: 7px 0px 0px 0px }#errorref { font-size: 11px; color: #737373; margin-top: 41px }</style><title>Microsoft</title>

The request is blocked.

05PmOYwAAAACidnVoE5qaQ5D92EjPNlsaSEtCRURHRTA5MTIAZTY2YjhiMDMtMDc5My00NDA5LTk3NzMtMmU2MTJlNzFhMWUz

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.