add save and load func

This commit is contained in:
bridge
2025-11-11 19:48:18 +08:00
parent 0cb7eacee7
commit 9b870475bf
21 changed files with 1348 additions and 32 deletions

View File

@@ -1,3 +1,6 @@
meta:
version: "1.0.2"
llm:
# 填入litellm支持的model name和key
key: "your-api-key" # 目前需要的是阿里的qwen api
@@ -8,6 +11,7 @@ llm:
paths:
templates: static/templates/
game_configs: static/game_configs/
saves: assets/saves/
ai:
max_decide_num: 4
@@ -28,6 +32,9 @@ avatar:
social:
event_context_num: 8
save:
max_events_to_save: 1000
# defined_avatar:
# surname: 丰川
# given_name: 祥子

View File

@@ -16,7 +16,7 @@
{{
"{avatar_name_2}": {{
"thinking": ..., // 简单思考对话的情况
"conversation_content": ... // 对话双方均为第三人称视角的对话的主题和情况概括约100字。注意不是对话的口语内容仙侠语言风格
"conversation_content": ... // 对话双方均为第三人称视角的对话100~150字仙侠语言风格。可以是聊天也可以是对话概括
"new_relation": ... // 如果你认为可以让两者产生某种身份关系则返回关系的中文名否则返回空str。注意这是{avatar_name_2}相对于{avatar_name_1}的身份。
"cancal_relation": ... // 可选如果你认为可以让两者取消某种身份关系则返回关系的中文名否则返回空str。注意这是{avatar_name_2}相对于{avatar_name_1}的身份。
}}