add llm ai
This commit is contained in:
7
static/config.yml
Normal file
7
static/config.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
llm:
|
||||
# 填入litellm支持的model name和key
|
||||
model_name:
|
||||
key:
|
||||
|
||||
paths:
|
||||
templates: static/templates/
|
||||
18
static/templates/ai.txt
Normal file
18
static/templates/ai.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
|
||||
你是一个决策者,这是一个修仙的仙侠世界,你负责来决定一些NPC的下一步行为。
|
||||
每个角色均拥有的动作空间和需要的参数为:
|
||||
{action_space}
|
||||
世界地图上存在的区域为:
|
||||
{regions}
|
||||
你需要进行决策的NPC的基本信息为:
|
||||
{avatar_infos}
|
||||
|
||||
注意,只返回json格式的动作
|
||||
返回格式:
|
||||
{{
|
||||
"avatar_id": ...,
|
||||
"action_name": ...,
|
||||
"action_params": ...,
|
||||
}}
|
||||
Reference in New Issue
Block a user