phidata
phidata copied to clipboard
Error in Tavily API
HTTPError: 422 Client Error: Unprocessable Entity for url: https://api.tavily.com/search
Traceback:
File "C:\Users\LENOVO\Documents\Python\Test\source\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "C:\Users\LENOVO\Documents\Python\Test\phidata\cookbook\llms\groq\research\app.py", line 79, in
Make sure you are exporting the Tavily API key correctly
export TAVILY_API_KEY="tvly-***"
@Kyros5 ^
thank you for your response @ashpreetbedi
export
it doesn't work so i used set
but it still don't working
set TAVILY_API_KEY="tvly-**********"
@Kyros5 on windows I'd recommend using Powershell. Checkout how to set an environment variable here
$env:TAVILY_API_KEY ="tvly-" use this in WindowsPOWERSHELL!!! @Kyros5
@Kyros5 is this fixed?
@ashpreetbedi No, i don't know how.
@Kyros5 for now can you do TavilyTools(api_key=<api_key>)
just to test it works this way?
@Kyros5 shall we close this?
@ashpreetbedi yes i am installing wsl on windows