fix the issue that lost prev observation memory in toolExpert bug (#2136) (#2137)

This commit is contained in:
cinjoseph 2024-11-19 21:48:44 +08:00 committed by GitHub
parent 780ce803e3
commit 4efe643db8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,11 +129,13 @@ _DEFAULT_WRITE_MEMORY_TEMPLATE = """\
{% if question %}Question: {{ question }} {% endif %}
{% if thought %}Thought: {{ thought }} {% endif %}
{% if action %}Action: {{ action }} {% endif %}
{% if observation %}Observation: {{ observation }} {% endif %}
"""
_DEFAULT_WRITE_MEMORY_TEMPLATE_ZH = """\
{% if question %}问题: {{ question }} {% endif %}
{% if thought %}思考答案: {{ thought }} {% endif %}
{% if action %}行动结果: {{ action }} {% endif %}
{% if observation %}观察: {{ observation }} {% endif %}
"""