GithubHelp home page GithubHelp logo

星火api报错 about ai-vtuber HOT 7 CLOSED

langyaya avatar langyaya commented on July 20, 2024
星火api报错

from ai-vtuber.

Comments (7)

langyaya avatar langyaya commented on July 20, 2024

不好意思是这个报错
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)

from ai-vtuber.

Ikaros-521 avatar Ikaros-521 commented on July 20, 2024

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

from ai-vtuber.

HildaM avatar HildaM commented on July 20, 2024

from ai-vtuber.

Ikaros-521 avatar Ikaros-521 commented on July 20, 2024

下午弄,上午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: @.***>

工作要紧

from ai-vtuber.

Ikaros-521 avatar Ikaros-521 commented on July 20, 2024

重装解决 websocket-client

pip uninstall websocket-client

pip install websocket-client

from ai-vtuber.

Ikaros-521 avatar Ikaros-521 commented on July 20, 2024

@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)

from ai-vtuber.

Ikaros-521 avatar Ikaros-521 commented on July 20, 2024

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

from ai-vtuber.

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.