Код: Выделить всё
result = crew.kickoff(inputs={"topic": "Artificial Intelligence"})
from IPython.display import Markdown
Markdown(result)
Я заметил, что получаю эту ошибку в своем Блокнот Anaconda Jupyter, а также мой редактор VSCode. Я не запускаю их в онлайн-редакторе Lightning AI.
Я использовал Macbook pro. Мое первоначальное подозрение - это сертификаты, установленные на моей связке ключей, но я не знаю, какой из них исправить и как.
Есть подсказки, почему это происходит?
Код: Выделить всё
- ---------------------------------------------------------------------------
SSLCertVerificationError
Traceback (most recent call last)
File /opt/anaconda3/lib/python3.11/site-packages/httpcore/_exceptions.py:10, in map_exceptions(map)
9 try:
---> 10 yield
11 except Exception as exc: # noqa: PIE786
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
The above exception was the direct cause of the following exception:
ConnectError
Traceback (most recent call last)
File /opt/anaconda3/lib/python3.11/site-packages/httpx/_transports/default.py:67, in map_httpcore_exceptions()
66 try:
---> 67 yield
68 except Exception as exc:
ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
The above exception was the direct cause of the following exception:
ConnectError
Traceback (most recent call last)
File /opt/anaconda3/lib/python3.11/site-packages/openai/_base_client.py:952, in SyncAPIClient._request(self, cast_to, options, remaining_retries, stream, stream_cls)
951 try:
--> 952 response = self._client.send(
953 request,
954 stream=stream or self._should_stream_response_body(request=request),
955 **kwargs,
956 )
957 except httpx.TimeoutException as err:
File /opt/anaconda3/lib/python3.11/site-packages/httpx/_transports/default.py:84, in map_httpcore_exceptions()
83 message = str(exc)
---> 84 raise mapped_exc(message) from exc
ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
During handling of the above exception, another exception occurred:
SSLCertVerificationError
Traceback (most recent call last)
File /opt/anaconda3/lib/python3.11/site-packages/httpcore/_exceptions.py:10, in map_exceptions(map)
9 try:
---> 10 yield
11 except Exception as exc: # noqa: PIE786
File /opt/anaconda3/lib/python3.11/ssl.py:1108, in SSLSocket._create(cls, sock, server_side, do_handshake_on_connect, suppress_ragged_eofs, server_hostname, context, session)
1107 raise ValueError("do_handshake_on_connect should not be specified for non-blocking sockets")
-> 1108 self.do_handshake()
1109 except (OSError, ValueError):
File /opt/anaconda3/lib/python3.11/ssl.py:1383, in SSLSocket.do_handshake(self, block)
1382 self.settimeout(None)
-> 1383 self._sslobj.do_handshake()
1384 finally:
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
The above exception was the direct cause of the following exception:
ConnectError
Traceback (most recent call last)
File /opt/anaconda3/lib/python3.11/site-packages/httpx/_transports/default.py:67, in map_httpcore_exceptions()
66 try:
---> 67 yield
68 except Exception as exc:
Подробнее здесь: https://stackoverflow.com/questions/785 ... few-agents