Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -128,7 +128,7 @@ tools = [generate_and_upload_image, analyze_image_with_text]
|
|
| 128 |
llm = ChatGoogleGenerativeAI(model="gemini-2.5-flash", temperature=0.4)
|
| 129 |
|
| 130 |
prompt_template = ChatPromptTemplate.from_messages([
|
| 131 |
-
("system", "你是一個強大的助理。在使用工具之前,請務必先說明你的思考步驟
|
| 132 |
("user", "{input}"),
|
| 133 |
MessagesPlaceholder(variable_name="agent_scratchpad"),
|
| 134 |
])
|
|
|
|
| 128 |
llm = ChatGoogleGenerativeAI(model="gemini-2.5-flash", temperature=0.4)
|
| 129 |
|
| 130 |
prompt_template = ChatPromptTemplate.from_messages([
|
| 131 |
+
("system", "你是一個強大的助理。在使用工具之前,請務必先說明你的思考步驟。如果生成了圖片,請直接給出 URL。"),
|
| 132 |
("user", "{input}"),
|
| 133 |
MessagesPlaceholder(variable_name="agent_scratchpad"),
|
| 134 |
])
|