Ikaros-521 / AI-Vtuber

AI Vtuber是一个由 【ChatterBot/ChatGPT/claude/langchain/chatglm/text-gen-webui/闻达/千问/kimi/ollama】 驱动的虚拟主播【Live2D/UE/xuniren】,可以在 【Bilibili/抖音/快手/微信视频号/拼多多/斗鱼/YouTube/twitch/TikTok】 直播中与观众实时互动 或 直接在本地进行聊天。它使用TTS技术【edge-tts/VITS/elevenlabs/bark/bert-vits2/睿声】生成回答并可以选择【so-vits-svc/DDSP-SVC】变声;指令协同SD画图。
https://ikaros-521.github.io/Luna-Docs/site/
GNU General Public License v3.0
2.93k stars 447 forks source link

星火api报错 #313

Closed langyaya closed 11 months ago

langyaya commented 1 year ago

配置选择:聊天模式——星火——api appip和两个K也没问题

langyaya commented 1 year ago

不好意思是这个报错 2023-09-12 12:36:42,794 - D:\AI-Vtuber\utils\my_handle.py[line:870] - INFO: [主人]: 你好啊 Exception in thread Thread-11: Traceback (most recent call last): File "D:\AI-Vtuber\Miniconda3\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "D:\AI-Vtuber\Miniconda3\lib\threading.py", line 1378, in run self.function(*self.args, self.kwargs) File "D:\AI-Vtuber\utils\my_handle.py", line 1229, in process_last_data self.comment_handle(data) File "D:\AI-Vtuber\utils\my_handle.py", line 953, in comment_handle resp_content = self.llm_handle(self.chat_type, data_json) File "D:\AI-Vtuber\utils\my_handle.py", line 800, in llm_handle resp_content = self.sparkdesk.get_sparkdesk_resp(data["content"]) File "D:\AI-Vtuber\utils\gpt_model\sparkdesk.py", line 55, in get_sparkdesk_resp return self.sparkAPI.chat(prompt) File "D:\AI-Vtuber\Miniconda3\lib\site-packages\sparkdesk_api\core.py", line 115, in chat ws = create_connection(url) File "D:\AI-Vtuber\Miniconda3\lib\site-packages\websocket__init__.py", line 227, in create_connection websock.connect(url, options) File "D:\AI-Vtuber\Miniconda3\lib\site-packages\websocket__init__.py", line 523, in connect self.sock = ssl.wrap_socket(self.sock, **sslopt) File "D:\AI-Vtuber\Miniconda3\lib\ssl.py", line 1442, in wrap_socket return context.wrap_socket( File "D:\AI-Vtuber\Miniconda3\lib\ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "D:\AI-Vtuber\Miniconda3\lib\ssl.py", line 1071, in _create self.do_handshake() File "D:\AI-Vtuber\Miniconda3\lib\ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1007)

Ikaros-521 commented 1 year ago

待ming修复bug https://github.com/HildaM/sparkdesk-api

HildaM commented 1 year ago

下午弄,上午HR面😭

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年09月13日 00:30 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [Ikaros-521/AI-Vtuber] 星火api报错 (Issue #313) |

Assigned #313 to @HildaM.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>

Ikaros-521 commented 1 year ago

下午弄,上午HR面😭

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年09月13日 00:30 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [Ikaros-521/AI-Vtuber] 星火api报错 (Issue #313) |

Assigned #313 to @HildaM.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.Message ID: @.***>

工作要紧

Ikaros-521 commented 1 year ago

重装解决 websocket-client

pip uninstall websocket-client

pip install websocket-client

Ikaros-521 commented 1 year ago

@HildaM 虚拟机有类似问题,感觉治标不治本了

2023-10-03 22:30:13,358 - E:\AI-Vtuber-20230924\utils\my_handle.py[line:1557] - ERROR: Traceback (most recent call last):
  File "E:\AI-Vtuber-20230924\utils\my_handle.py", line 1431, in comment_handle
    resp_content = self.llm_handle(self.chat_type, data_json)
  File "E:\AI-Vtuber-20230924\utils\my_handle.py", line 851, in llm_handle
    resp_content = self.sparkdesk.get_sparkdesk_resp(data["content"])
  File "E:\AI-Vtuber-20230924\utils\gpt_model\sparkdesk.py", line 51, in get_sparkdesk_resp
    return self.sparkAPI.chat(prompt)
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\site-packages\sparkdesk_api\core.py", line 114, in chat
    ws = create_connection(url)
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\site-packages\websocket\_core.py", line 610, in create_connection
    websock.connect(url, **options)
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\site-packages\websocket\_core.py", line 251, in connect
    self.sock, addrs = connect(url, self.sock_opt, proxy_info(**options),
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\site-packages\websocket\_http.py", line 135, in connect
    sock = _ssl_socket(sock, options.sslopt, hostname)
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\site-packages\websocket\_http.py", line 275, in _ssl_socket
    sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname)
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\site-packages\websocket\_http.py", line 251, in _wrap_sni_socket
    return context.wrap_socket(
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\ssl.py", line 1071, in _create
    self.do_handshake()
  File "E:\AI-Vtuber-20230924\Miniconda3\lib\ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
Ikaros-521 commented 11 months ago

升级星火库到1.5.0 https://github.com/HildaM/sparkdesk-api