|
|
4ffd84510e
|
refactor: 清理旧编排代码,新增 eino 包单元测试
删除旧代码:
- orchestrator/pipeline.go: 旧 STT→LLM→TTS 手写 goroutine 管道
- orchestrator/splitter.go: 旧句子切分器
- orchestrator/pipeline_test.go: 旧 Pipeline 测试
- ai/llm/openai.go: 旧 LLM OpenAI 实现(被 eino-ext ChatModel 替代)
- ai/llm/openai_test.go: 旧 LLM 测试
保留的接口和工具:
- orchestrator/orchestrator.go: Orchestrator 接口(ws/handler 依赖)
- orchestrator/sender.go: Sender 接口(eino/callback 依赖)
- ai/llm/llm.go: Request/Chunk/TokenUsage 类型定义
- ai/llm/prompt.go: BuildSystemPrompt(eino/nodes_history 依赖)
- ai/llm/scenarios.go: GetScenarioPrompt(eino/nodes_history 依赖)
新增测试:
- eino/graph_test.go: 13 个测试覆盖类型构建、State 并发安全、
Context 注入、延迟计算、接口实现检查等
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-06-19 22:04:39 +08:00 |
|
|
|
b60e513317
|
feat:添加对话情景功能
|
2026-06-14 20:32:30 +08:00 |
|
|
|
312e762aff
|
fix: 修复文本输入时 LLM API 报错的问题
- 移除 contentPart.Text 的 omitempty 标签
- 确保 text 字段始终存在于 JSON 请求中
|
2026-06-14 13:02:07 +08:00 |
|
|
|
96cf009228
|
test: 更新测试文件适配构造函数签名变更
|
2026-06-14 11:55:29 +08:00 |
|
|
|
aae0629b2d
|
fix: LLM 服务去除重复默认值,新增 httpClientTimeout 参数
- 去除 model/endpoint 的 fallback 默认值
- HTTP Client 超时从 config 传入
|
2026-06-14 11:55:19 +08:00 |
|
|
|
90f4b907a7
|
test: 编写 LLM 测试(mock SSE 流,覆盖成功/图片/历史/API 错误/超时/Usage)
|
2026-06-13 15:45:51 +08:00 |
|
|
|
96b4c4899a
|
feat: 实现 OpenAI LLM 服务(SSE 流式解析 + 多模态消息构建)及 System Prompt 定义
|
2026-06-13 15:44:23 +08:00 |
|
|
|
078cfe6278
|
feat: 定义 LLM Service 接口(ChatStream + Request/Chunk/TokenUsage)
|
2026-06-13 15:42:14 +08:00 |
|