alanchen1115 commited on
Commit
0d0d866
·
verified ·
1 Parent(s): e6c5cb8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -161,7 +161,7 @@ def analyze_image_with_text(image_path: str, user_text: str) -> str:
161
  # ==========================
162
  tools = [generate_and_upload_image, analyze_image_with_text]
163
  # 1. 建立 LLM 模型
164
- llm = ChatGoogleGenerativeAI(model="gemini-3-flash-lite-preview", temperature=0.4)
165
  # 2. 定義 System Prompt (取代原本的 prompt_template)
166
  system_prompt = "你是一個強大的影像生成及影像分析代理人。如果生成了圖片,請直接給出 URL。"
167
  # 3. 直接建立包含 Executor 功能的 Agent
 
161
  # ==========================
162
  tools = [generate_and_upload_image, analyze_image_with_text]
163
  # 1. 建立 LLM 模型
164
+ llm = ChatGoogleGenerativeAI(model="gemini-3.1-flash-lite-preview", temperature=0.4)
165
  # 2. 定義 System Prompt (取代原本的 prompt_template)
166
  system_prompt = "你是一個強大的影像生成及影像分析代理人。如果生成了圖片,請直接給出 URL。"
167
  # 3. 直接建立包含 Executor 功能的 Agent