From dcc3dbacab3013a09773fb6c23d2ecc9ef134d01 Mon Sep 17 00:00:00 2001 From: Young <88476437+Redamency@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:06:49 +0800 Subject: [PATCH] add load_dotenv in chapter8 --- ...256\260\345\277\206\344\270\216\346\243\200\347\264\242.md" | 3 +++ 1 file changed, 3 insertions(+) diff --git "a/docs/chapter8/\347\254\254\345\205\253\347\253\240 \350\256\260\345\277\206\344\270\216\346\243\200\347\264\242.md" "b/docs/chapter8/\347\254\254\345\205\253\347\253\240 \350\256\260\345\277\206\344\270\216\346\243\200\347\264\242.md" index 0d3587d..f5728a6 100644 --- "a/docs/chapter8/\347\254\254\345\205\253\347\253\240 \350\256\260\345\277\206\344\270\216\346\243\200\347\264\242.md" +++ "b/docs/chapter8/\347\254\254\345\205\253\347\253\240 \350\256\260\345\277\206\344\270\216\346\243\200\347\264\242.md" @@ -218,6 +218,9 @@ EMBED_BASE_URL= ```python # 配置好同级文件夹下.env中的大模型API +from dotenv import load_dotenv +load_dotenv() + from hello_agents import SimpleAgent, HelloAgentsLLM, ToolRegistry from hello_agents.tools import MemoryTool, RAGTool