mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
refactor: 增强跨格式转换系统,支持 thinking/文件/音频/响应格式等完整转换
- 新增 ThinkingConfig/ResponseFormatConfig/FileBlock/AudioBlock 内部表示 - 实现 OpenAI reasoning_effort <-> Claude thinking <-> Gemini thinkingConfig 互转 - 支持 OpenAI web_search_options -> Claude web_search tool 转换 - 新增异步 convert_request_async,在转换阶段解析图片 URL 为 base64 - 将 GlobalModel.output_limit 传播至跨格式转换用于 max_tokens 默认值 - 前端模型表单增加最大输出 Token 和上下文窗口配置 - Claude normalizer 保留 cache_control 透传(system 数组和 content block) - Gemini normalizer 支持内置工具(googleSearch/codeExecution/urlContext) - OpenAI normalizer 补全采样参数、response_format、usage details 转换 - 各 normalizer 工具方法提取至基类消除重复代码 - 简化 Kiro model mapping 为直接透传 - 预置模型列表添加 claude-sonnet-4.6
This commit is contained in:
@@ -147,6 +147,36 @@
|
||||
@update:model-value="(v) => setConfigField('description', v || undefined)"
|
||||
/>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-3">
|
||||
<div class="space-y-1.5">
|
||||
<Label
|
||||
for="model-output-limit"
|
||||
class="text-xs"
|
||||
>最大输出 Token</Label>
|
||||
<Input
|
||||
id="model-output-limit"
|
||||
:model-value="form.config?.output_limit ?? ''"
|
||||
type="number"
|
||||
min="1"
|
||||
placeholder="如 8192"
|
||||
@update:model-value="(v) => setConfigField('output_limit', parseNumberInput(v, { allowFloat: false }))"
|
||||
/>
|
||||
</div>
|
||||
<div class="space-y-1.5">
|
||||
<Label
|
||||
for="model-context-limit"
|
||||
class="text-xs"
|
||||
>上下文窗口</Label>
|
||||
<Input
|
||||
id="model-context-limit"
|
||||
:model-value="form.config?.context_limit ?? ''"
|
||||
type="number"
|
||||
min="1"
|
||||
placeholder="如 200000"
|
||||
@update:model-value="(v) => setConfigField('context_limit', parseNumberInput(v, { allowFloat: false }))"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Key 能力配置 -->
|
||||
|
||||
Reference in New Issue
Block a user