Git Product home page Git Product logo

chat-webapi's Introduction

Hi, I’m XiaoXinYo.

Mail

Language

C++ java Python TypeScript JavaScript Scala

State

XiaoXinYo's GitHub stats

chat-webapi's People

Contributors

xiaoxinyo 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

Watchers

 avatar

chat-webapi's Issues

[Bug]: KeyError: 'messages'

在提交前请确保以下这些

  • ChatGPT,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Linux

Python版本

3.10.9

问题

请求 new bing , 服务端有时候报错:
response["item"]["messages"][-1]["contentOrigin"] == "Apology"
~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'messages'

触发

正常请求ask 接口的时候

报错

No response

其他

No response

[Bug]: bingAPI失效

在提交前请确保以下这些

  • Chat-API为最新版本
  • revChatGPT,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Windows

Python版本

3.10.11

问题

文心一言是正常的,但是bingAPI失效

触发

{"code": 500, "message": "未知错误", "data": null}

报错

No response

其他

No response

[Feature]: Serverless部署

在提交前请确保以下这些

  • 在Issue无法找到它

描述

请支持使用serverless部署(比如Vercel)

[Bug]: bing 报错 KeyError: 'conversationSignature'

在提交前请确保以下这些

  • Chat-WebAPI为最新版本
  • GoogleBard,EdgeGPT,BingImageCreator,revChatGPT,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Windows

Python版本

3.10

问题

Traceback (most recent call last):
File "F:\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "F:\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\fastapi\applications.py", line 1115, in call
await super().call(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
File "D:\Chat-WebAPI-main\main.py", line 56, in middleware
response = await call_next(request)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call
raise e
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "D:\Chat-WebAPI-main\view\bing.py", line 101, in ask
token, chatBot = chat_bot.generateChatBot('Bing')
File "D:\Chat-WebAPI-main\module\chat_bot.py", line 28, in generateChatBot
chatBot = EdgeGPT.EdgeGPT.Chatbot(proxy=config.PROXY, cookies=BING_COOKIE)
File "F:\Python\Python310\lib\site-packages\EdgeGPT\EdgeGPT.py", line 28, in init
self.chat_hub: ChatHub = ChatHub(
File "F:\Python\Python310\lib\site-packages\EdgeGPT\chathub.py", line 42, in init
conversation_signature=conversation.struct["conversationSignature"],
KeyError: 'conversationSignature'

触发

post
http://127.0.0.1:222/bing/ask
{"question":"用我爱刘亦菲写首藏头诗"}

报错

Traceback (most recent call last):
File "F:\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "F:\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\fastapi\applications.py", line 1115, in call
await super().call(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
File "D:\Chat-WebAPI-main\main.py", line 56, in middleware
response = await call_next(request)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call
raise e
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "D:\Chat-WebAPI-main\view\bing.py", line 101, in ask
token, chatBot = chat_bot.generateChatBot('Bing')
File "D:\Chat-WebAPI-main\module\chat_bot.py", line 28, in generateChatBot
chatBot = EdgeGPT.EdgeGPT.Chatbot(proxy=config.PROXY, cookies=BING_COOKIE)
File "F:\Python\Python310\lib\site-packages\EdgeGPT\EdgeGPT.py", line 28, in init
self.chat_hub: ChatHub = ChatHub(
File "F:\Python\Python310\lib\site-packages\EdgeGPT\chathub.py", line 42, in init
conversation_signature=conversation.struct["conversationSignature"],
KeyError: 'conversationSignature'

其他

[Bug]: 请问报错这个怎么解决?

在提交前请确保以下这些

  • ChatGPT,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Windows

Python版本

python3.10.11

问题

ImportError: cannot import name 'ConversationStyle' from 'EdgeGPT' (D:\python\lib\site-packages\EdgeGPT_init_.py)

触发

python main.py

报错

D:\demo\Chat-API-main>python main.py
Traceback (most recent call last):
File "D:\demo\Chat-API-main\main.py", line 6, in
from view import chatgpt, bing, bard, ernie
File "D:\demo\Chat-API-main\view\bing.py", line 8, in
from EdgeGPT import ConversationStyle
ImportError: cannot import name 'ConversationStyle' from 'EdgeGPT' (D:\python\lib\site-packages\EdgeGPT_init_.py)

请问要怎么解决?

其他

No response

[Bug]: bing api 发送请求,加上token参数,也无法连续对话

在提交前请确保以下这些

  • ChatGPT,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Windows

Python版本

3.11

问题

bing api 发送请求,加上token参数,也无法连续对话

触发

bing api 发送请求,加上token参数,也无法连续对话

报错

No response

其他

No response

[Bug]: No module named 'Bard

在提交前请确保以下这些

  • ChatGPT,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Windows

Python版本

3.9

问题

image
不知道为什么提示 ‘ModuleNotFoundError: No module named 'Bard'’

触发

安装依赖时

报错

No response

其他

No response

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.