feat(model-specs): 新增模型规格库——跨 provider 模型参数统一维护#30
Merged
Conversation
- compute/model-specs/:按厂商维护模型内在参数(上下文窗口/最大输出/能力/serviceType/默认温度,不含价签) - schemas/model-spec.schema.json:Draft-07 契约,spec 允许 null(新文件不影响老客户端 frozen 契约) - scripts/validate.mjs:pickSchemaKey 纳入 model-specs 校验 - manifest.presetDataVersion 54→55
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.
摘要
新增
compute/model-specs/目录,作为跨 provider 共享的模型参数字典。维护模型的「内在参数」(上下文窗口、最大输出、能力标签、serviceType、默认采样温度等),与「从哪家 provider、什么价格调用」解耦。变更内容
新增
compute/model-specs/(21 个文件,177 条规格)覆盖厂商:Anthropic / OpenAI / Google / DeepSeek / Qwen / Moonshot / Zhipu / MiniMax / xAI / Mistral / Xiaomi(MiMo) / Baichuan / Baidu(ERNIE) / Cohere / Kling / LingYiWanWu / Perplexity / Stability / Tencent(Hunyuan) / VolcEngine(Doubao) / iFlytek
新增
schemas/model-spec.schema.json独立 Draft-07 契约,与 frozen provider.schema.json 完全隔离:
defaultTemperature: null(reasoning 模型不支持温度调节)releasedAt/retiredAt时间戳字段(辅助人工清理退役模型,无客户端行为)additionalProperties: false严格校验修改
scripts/validate.mjs:纳入compute/model-specs/路径校验manifest.presetDataVersion54 → 58设计说明
关联