feat: 重构 Thread 输入框并统一 Token Router 模型接入 - #104
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
重构 Thread 输入框,将文本、附件、引用统一为有序内容,并接入官方 Composer 外观与 Lexical 编辑器。用户可在输入区选择 Artifact、上传附件、切换模型和调整生成参数;发送、编辑和分叉沿用同一内容协议。
defineProviderModels,统一使用TOKEN_ROUTER_BASE_URL/TOKEN_ROUTER_API_KEY。保留历史公开模型 ID 和其他旧 provider,后续另行退役。reasoning_effort与max_completion_tokens序列化。验证
pnpm typecheck、相关文件 ESLint、git diff --check通过。pnpm openspec:validate:34 项通过。low / 16K完成请求:正确读取文字、计算总价并识别图片内容;返回 reasoning,刷新恢复正常。服务端参数日志与 SDK 序列化测试验证参数传递,不将短回答成功视为输出上限实际截断的证明。范围与后续