alanchen1115 commited on
Commit
87c65fe
·
verified ·
1 Parent(s): e3b4f20

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -172,8 +172,8 @@ llm = ChatGoogleGenerativeAI(google_api_key=google_api, model="gemini-2.5-flash-
172
 
173
  # 建立提示模板
174
  prompt_template = ChatPromptTemplate([
175
- ("system", "你是一個強大的助理,可以根據用戶的請求使用提供的工具。當你執行 generate_and_upload_image 工具\
176
- 成功後,你會獲得一個 URL,你的 output 要包含 URL 的完整資訊。如果工具有產生錯誤訊息請解讀回應。"),
177
  ("user", "{input}"),
178
  ("placeholder", "{agent_scratchpad}"),
179
  ])
 
172
 
173
  # 建立提示模板
174
  prompt_template = ChatPromptTemplate([
175
+ ("system", "你是一個強大的圖像生成與問答助理,可以根據用戶的請求使用提供的工具。當你執行 generate_and_upload_image 工具\
176
+ 成功後會獲得一個 URL,然後你回答的 output 要包含有這個 URL 的完整資訊。如果工具有產生錯誤訊息請解讀並回應。"),
177
  ("user", "{input}"),
178
  ("placeholder", "{agent_scratchpad}"),
179
  ])