search_with_lepton
search_with_lepton copied to clipboard
> python3 search_with_lepton.py
I know the default is Lepton, but...(All is normal yesterday)
(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 read()
.