Replies: 2 comments 2 replies
-
你是不是没有加载环境变量只系统环境里面,要先load_dotenv(),将你配置的环境变量加载至系统环境,之后才能通过os.getenv()方法获取,使用加载函数还需要先导入:from dotenv import load_dotenv |
Beta Was this translation helpful? Give feedback.
1 reply
-
把这两行注释掉 TAVILY_API_KEY="YOUR_Tavily_KEY"
os.environ['TAVILY_API_KEY'] = "YOUR_TAVILY_API_KEY" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我尝试将TAVILY_API_KEY配置到环境变量中,不写在代码里,但是会在调用天气查询工具时直接抛没有找到该变量的异常
Beta Was this translation helpful? Give feedback.
All reactions