feat: 更新Docker配置和API端口,优化流式响应处理

refactor: 重构工具管理和路由逻辑,提升代码可维护性

fix: 修正配置文件中的传输协议和工具调用名称

docs: 更新README和归档文件,添加生产环境配置说明

perf: 优化流式响应生成,减少内存消耗
This commit is contained in:
2025-11-07 15:56:45 +08:00
17 changed files with 256 additions and 179 deletions

View File

@@ -12,19 +12,19 @@ examples = [
},
{
"inputs": {"text": "有没有光予尘?"},
"outputs": {"answer": "",
"tool_use": ["retrieve|get_resources"]}
"outputs": {"answer": "",
"tool_use": ["retrieve|get_dishes"]}
},
{
"inputs": {"text": "有没有关羽尘?"},
"outputs": {"answer": "",
"tool_use": ["retrieve|get_resources"]}
"outputs": {"answer": "",
"tool_use": ["retrieve|get_dishes"]}
},
{
"inputs": {"text": ["我要购买一杯野星星",
"我要再加一杯"]},
"outputs": {"answer": "你的野星星已经下单成功",
"tool_use": ["retrieve|get_resource",
"tool_use": ["retrieve|get_dishes",
"start_shopping_session",
"add_to_cart",
"create_wechat_pay",