文件最后提交记录最后更新时间
fix: 修复 Anthropic Adaptive Thinking 支持及 BudgetTokens 空指针问题 (#212) * fix: :bug: 支持 Anthropic adaptive thinking 模式 扩展 inbound Thinking 结构体支持 type=adaptive,添加 OutputConfig 结构体接收 effort 参数,BudgetTokens 改为 *int64 指针以适配 adaptive 模式下无需此字段的场景。outbound 根据 AdaptiveThinking 标记构造 adaptive 或 enabled 两种不同的 thinking 请求。 * refactor: :recycle: 提取 Thinking/Effort 常量并重构 getThinkingBudget 返回类型 - 新增 ThinkingType 和 Effort 常量,消除散落多处的魔法字符串 - getThinkingBudget 返回 *int64,调用处无需 lo.ToPtr 包装 * fix: :bug: 补全 thinking switch 分支并添加异常日志 - 添加 disabled 显式分支和 default 分支记录 warn 日志 - enabled 模式下 BudgetTokens 为 nil 时记录 warn 告警 * test: :white_check_mark: 新增 adaptive thinking 单元测试 覆盖 adaptive/enabled/disabled 模式的 inbound 解析及 outbound 构造, 包含 getThinkingBudget 各 effort 级别和 budget 覆盖的测试用例 * Revert "test: :white_check_mark: 新增 adaptive thinking 单元测试" This reverts commit d2152cde29565c314b2b0f63697237128db2aa89. #2092 个月前
修复两个bug,一个是issue #192, 一个是根据issue #158 打的补丁 (#195) * fix: fixed tool_calls structure * fix: fixed user agent bug according to issue #158 * fix: more compatiable with openclaw request style fix #192 fix #1582 个月前
feat: :sparkles: implement OpenAI Embedding API support (#123) Add full support for OpenAI Embedding API: - Add EmbeddingInbound and EmbeddingOutbound transformers with field name mapping - Internal format uses embedding_input/embedding_dimensions/embedding_encoding_format - External format maintains OpenAI standard (input/dimensions/encoding_format/data) - Add EmbeddingInput and related model structures - Add embedding endpoint handler (/embeddings) - Add channel type validation (embedding vs chat requests) - Add EmbeddingChannelTypes and ChatChannelTypes for type filtering - Update frontend UI with OpenAI Embedding channel option Co-authored-by: Claude <noreply@anthropic.com>4 个月前