Ensure the `"Observation:"` tag is present after stopping, since stopping on that token prevents it from appearing in the output.
#121
by
fouadtrad
- opened
unit1/dummy_agent_library.ipynb
CHANGED
@@ -449,7 +449,7 @@
|
|
449 |
"messages=[\n",
|
450 |
" {\"role\": \"system\", \"content\": SYSTEM_PROMPT},\n",
|
451 |
" {\"role\": \"user\", \"content\": \"What's the weather in London ?\"},\n",
|
452 |
-
" {\"role\": \"assistant\", \"content\": output.choices[0].message.content+get_weather('London')},\n",
|
453 |
"]\n",
|
454 |
"messages"
|
455 |
]
|
|
|
449 |
"messages=[\n",
|
450 |
" {\"role\": \"system\", \"content\": SYSTEM_PROMPT},\n",
|
451 |
" {\"role\": \"user\", \"content\": \"What's the weather in London ?\"},\n",
|
452 |
+
" {\"role\": \"assistant\", \"content\": output.choices[0].message.content+"Observation:\n"+get_weather('London')},\n",
|
453 |
"]\n",
|
454 |
"messages"
|
455 |
]
|