Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
dev
octopus
/
internal
/
transformer
下载当前目录
G
GitHub
feat(transformer): add support for DeepSeek thinking mode and Nvidia chat template kwargs (
#269
)
4c4c79be
创建于
18 天前
历史提交
文件
最后提交记录
最后更新时间
inbound
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. #209
2 个月前
model
feat(transformer): add support for DeepSeek thinking mode and Nvidia chat template kwargs (#269) Add new fields to InternalLLMRequest struct: - Thinking: controls DeepSeek thinking mode with type and budget_tokens configuration - ChatTemplateKwargs: enables passing chat template parameters for Nvidia models
18 天前
outbound
fix: :bug: 剔除 Gemini 不支持的 JSON Schema 关键字以适配 Claude Code (#255)
1 个月前
NOTICE
feat: :sparkles: llm api relay
5 个月前