forked from 5201213/doubao-free-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.json
More file actions
13 lines (13 loc) · 1.15 KB
/
Copy pathconfig.example.json
File metadata and controls
13 lines (13 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"cookie": "YOUR_COOKIE_HERE",
"device_id": "YOUR_DEVICE_ID_HERE",
"web_id": "YOUR_WEB_ID_HERE",
"tea_uuid": "YOUR_TEA_UUID_HERE",
"room_id": "YOUR_ROOM_ID_HERE",
"fp": "YOUR_FP_HERE",
"api_base": "https://www.doubao.com",
"sign_method": "b3",
"server_host": "0.0.0.0",
"server_port": 8765,
"webchat_task":"先判断用户请求是否需要调用工具,如果需要调用工具就按照下面的规则处理\n可用工具:\nexec, process,code_execution\n本地系统:\nTermux\n学习地址:\nhttps://deepwiki.com/openai/openai-cookbook/6-function-calling-and-tool-integration#function-calling-and-tool-integration\n回复格式:\n生成一个符合openai api tool_calls 规范的 json 的工具调用回复内容,前后不要含有任何其它字符,以便触发openclaw 调用本地工具\n注意事项:\narguments 项的值为字符串时,参考 \"arguments\": \"{\\\"command\\\":\\\"ls\\\"}\"\n回复内容参考:\n{ \"tool_calls\": [ { \"id\": \"exec_001\", \"type\": \"function\", \"function\": { \"name\": \"exec\", \"arguments\": \"{\\\"command\\\":\\\"ls\\\"}\" } } ]}"
}