add llm ai

This commit is contained in:
bridge
2025-08-30 21:58:43 +08:00
parent 9ab71d1ac8
commit 4f9c6d4c79
11 changed files with 114 additions and 16 deletions

7
static/config.yml Normal file
View File

@@ -0,0 +1,7 @@
llm:
# 填入litellm支持的model name和key
model_name:
key:
paths:
templates: static/templates/

18
static/templates/ai.txt Normal file
View File

@@ -0,0 +1,18 @@
你是一个决策者这是一个修仙的仙侠世界你负责来决定一些NPC的下一步行为。
每个角色均拥有的动作空间和需要的参数为:
{action_space}
世界地图上存在的区域为:
{regions}
你需要进行决策的NPC的基本信息为
{avatar_infos}
注意只返回json格式的动作
返回格式:
{{
"avatar_id": ...,
"action_name": ...,
"action_params": ...,
}}