mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-15 15:13:48 -06:00
9320bd379e
Co-authored-by: VACInc <3279061+VACInc@users.noreply.github.com>
15 lines
593 B
TypeScript
15 lines
593 B
TypeScript
// Ollama plugin module owns model-specific native thinking contracts.
|
|
export function supportsOllamaCloudFullThinkingEffort(modelId: string): boolean {
|
|
// These hosted families accept low, medium, high, and max even when
|
|
// lightweight catalog projections omit their reasoning metadata.
|
|
const normalized = normalizeOllamaCloudModelId(modelId);
|
|
return normalized === "glm-5.2" || /^deepseek-v4-(?:flash|pro)$/.test(normalized);
|
|
}
|
|
|
|
function normalizeOllamaCloudModelId(modelId: string): string {
|
|
return modelId
|
|
.trim()
|
|
.toLowerCase()
|
|
.replace(/(?::cloud|-cloud)$/, "");
|
|
}
|