feat(xiaomi): add MiMo thinking profile and stream wrapper · openclaw/openclaw@e3ad37c
jimdawdy-hub
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import type { ProviderWrapStreamFnContext } from "openclaw/plugin-sdk/plugin-entry"; |
| 2 | +import { createDeepSeekV4OpenAICompatibleThinkingWrapper } from "openclaw/plugin-sdk/provider-stream-shared"; |
| 3 | +import { isMiMoReasoningModelRef } from "./thinking.js"; |
| 4 | + |
| 5 | +export function createMiMoThinkingWrapper( |
| 6 | +baseStreamFn: ProviderWrapStreamFnContext["streamFn"], |
| 7 | +thinkingLevel: ProviderWrapStreamFnContext["thinkingLevel"], |
| 8 | +): ProviderWrapStreamFnContext["streamFn"] { |
| 9 | +return createDeepSeekV4OpenAICompatibleThinkingWrapper({ |
| 10 | + baseStreamFn, |
| 11 | + thinkingLevel, |
| 12 | +shouldPatchModel: isMiMoReasoningModelRef, |
| 13 | +}); |
| 14 | +} |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。