fix: MiMo 上下文窗口 1M + Agnes 多模态支持 Base64
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Agnes AI Provider Adapter
|
||||
*
|
||||
* OpenAI 兼容 API。支持 Tool Calling、Thinking 模式、多模态(图片)。
|
||||
* OpenAI 兼容 API。支持 Tool Calling、Thinking 模式、多模态(图片 — URL + Base64)。
|
||||
*
|
||||
* 独立继承 BaseAdapter,通过 shared/openai-format 和 shared/sse-stream 复用
|
||||
* OpenAI 兼容格式构建和 SSE 流式解析逻辑。不与其他 Provider Adapter 耦合。
|
||||
@@ -37,7 +37,7 @@ export class AgnesAdapter extends BaseAdapter {
|
||||
maxOutputTokens: 65_536,
|
||||
supportsToolCalling: true,
|
||||
supportsThinking: true,
|
||||
description: 'Agnes AI 快速版,1M 上下文,支持多模态图片与思考模式',
|
||||
description: 'Agnes AI 快速版,1M 上下文,支持多模态图片(URL + Base64)与思考模式',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -136,6 +136,7 @@ export class AgnesAdapter extends BaseAdapter {
|
||||
*
|
||||
* Agnes AI 特有参数:
|
||||
* - 多模态图片:user 消息的 images[] → OpenAI content 数组 [{type:"text"}, {type:"image_url"}]
|
||||
* 支持 HTTPS URL 或 base64 Data URI(与 MiMo 一致)
|
||||
* - chat_template_kwargs: { enable_thinking: true } — 启用思考模式(非 thinking 字段)
|
||||
* - 默认 max_tokens: 65536(1M 上下文,65.5K 最大输出)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user