> python3 search_with_lepton.py

作者: New-King创建于 2024年6月19日更新于 2024年11月8日

我知道默认值是 Lepton,但是…(昨天一切正常) env root@iZt4n5462zgbdxz4pnhy3iZ:/home/search_with_lepton# python3 search_with_lepton.py /home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/photon/photon.py:605: RuntimeWarning: This photon expects secret BING_SEARCH_V7_SUBSCRIPTION_KEY, but it's not set. Please set it before running the photon, or you may get unexpected behavior. warnings.warn( /home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/photon/photon.py:605: RuntimeWarning: This photon expects secret GOOGLE_SEARCH_API_KEY, but it's not set. Please set it before running the photon, or you may get unexpected behavior. warnings.warn( /home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/photon/photon.py:605: RuntimeWarning: This photon expects secret SERPER_SEARCH_API_KEY, but it's not set. Please set it before running the photon, or you may get unexpected behavior. warnings.warn( /home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/photon/photon.py:605: RuntimeWarning: This photon expects secret SEARCHAPI_API_KEY, but it's not set. Please set it before running the photon, or you may get unexpected behavior. warnings.warn( /home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/photon/photon.py:605: RuntimeWarning: This photon expects secret LEPTON_WORKSPACE_TOKEN, but it's not set. Please set it before running the photon, or you may get unexpected behavior. warnings.warn( self.backend LEPTON Traceback (most recent call last): File "/home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/client.py", line 472, in _raise_for_detailed_status detail = res.json()["error"] File "/home/search_with_lepton/env/lib/python3.10/site-packages/httpx/_models.py", line 764, in json return jsonlib.loads(self.content, **kwargs) File "/home/search_with_lepton/env/lib/python3.10/site-packages/httpx/_models.py", line 570, in content raise ResponseNotRead() httpx.ResponseNotRead: Attempted to access streaming response content, without having called `read()`. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/search_with_lepton/search_with_lepton.py", line 651, in <module> RAG.launch() File "/home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/photon/photon.py", line 909, in launch self._call_init_once() File "/home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/photon/photon.py", line 626, in _call_init_once self._init_res = self.init() File "/home/search_with_lepton/search_with_lepton.py", line 389, in init self.leptonsearch_client = Client( File "/home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/client.py", line 334, in __init__ if not self.healthz(): File "/home/search_with_lepton/env/lib/python3.10/site-packages/leptonai/client.py", line 578, in healthz self._get_proper_res_content(res) …

内容来源: leptonai/search_with_lepton