Commit Graph

6 Commits

Author SHA1 Message Date
lutc5
74bbd8e6d2 feat: add OpenAI/Anthropic tools support with tool emulation
- Parse tools/tool_choice from OpenAI and Anthropic requests
- Inject tool definitions into system prompt via toolemulation
- Parse action blocks (```json action) from model responses
- Retry logic for forced tool_choice (any/required)
- Return proper tool_calls / tool_use in responses
- Support streaming tools via collect-and-replay pattern
- Add tool history projection (assistant tool_calls + tool results)
- Model ID normalization: use official names (Qwen3.6-Plus, etc.)
- Fix resolveSessionMode to use Fresh mode when tools present
2026-04-25 13:37:58 +08:00
coolxll
c49b4b63e7 feat(httpapi): 添加模型名称字段并创建查询模型命令工具
- 在 modelResponse 结构体中添加 Name 字段用于返回模型名称
- 实现 handleModels 接口返回模型的名称信息
- 创建 query-models 命令行工具用于查询和展示模型列表
- 实现 IPC 连接和模型数据提取功能
- 添加模型 ID 和场景键识别逻辑
- 支持多种模型字段映射和遍历解析
2026-04-04 13:39:45 +08:00
coolxll
9b652fea67 ci: add GitHub release workflow 2026-03-30 15:57:18 +08:00
coolxll
df69105329 docs(tool-emulation): 添加工具调用模拟实现清单与方法论文档
- 创建英文版工具模拟实现清单,涵盖13个核心实现面
- 添加中文版工具模拟实现清单,详细说明各项验收标准
- 编写英文版工具模拟方法论文档,阐述核心实现模式
- 补充中文版方法论文档,包括多轮调用与重试策略指导
- 实现HTTP API服务器测试,验证工具历史保持功能
- 新增工具模拟核心模块,包含工具定义提取与注入功能
- 添加拒绝检测、动作块解析等关键工具模拟组件
2026-03-30 15:35:23 +08:00
coolxll
a3907959c1 feat: add streaming responses for anthropic and openai 2026-03-25 22:13:40 +08:00
coolxll
585c3ba5ab feat: add Lingma IPC proxy service 2026-03-25 21:35:19 +08:00