惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: expose ollama thinking profile before activation · o...
yfge · 2026-05-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -68,6 +68,7 @@ Docs: https://docs.openclaw.ai

6868
6969

### Fixes

7070
71+

- Ollama/thinking: expose the lightweight Ollama provider thinking profile through the public provider-policy artifact too, so reasoning-capable Ollama models such as `ollama/deepseek-v4-pro:cloud` keep `/think max` available even before the full plugin runtime activates. Fixes #77612. Thanks @rriggs.

7172

- CLI/sessions: prune old unreferenced transcript, compaction checkpoint, and trajectory artifacts during normal `sessions cleanup`, so gateway restart or crash orphans do not accumulate indefinitely outside `sessions.json`. Fixes #77608. Thanks @slideshow-dingo.

7273

- Video generation: wait up to 20 minutes for slow fal/MiniMax queue-backed jobs, stop forwarding unsupported Google Veo generated-audio options, and normalize MiniMax `720P` requests to its supported `768P` resolution with the usual override warning/details instead of failing fallback.

7374

- Update/restart: probe managed Gateway restarts with the service environment and add a Docker product lane that exercises candidate-owned `openclaw update --yes --json` restarts, so SecretRef-backed local gateway auth cannot regress behind mocked restart checks. Thanks @vincentkoc.

Original file line numberDiff line numberDiff line change

@@ -27,6 +27,7 @@ import {

2727

promptAndConfigureOllama,

2828

queryOllamaModelShowInfo,

2929

} from "./api.js";

30+

import { resolveThinkingProfile as resolveOllamaThinkingProfile } from "./provider-policy-api.js";

3031

import {

3132

OLLAMA_DEFAULT_API_KEY,

3233

OLLAMA_PROVIDER_ID,

@@ -249,13 +250,7 @@ export default definePluginEntry({

249250

contributeResolvedModelCompat: ({ model }) =>

250251

usesOllamaOpenAICompatTransport(model) ? { supportsUsageInStreaming: true } : undefined,

251252

resolveReasoningOutputMode: () => "native",

252-

resolveThinkingProfile: ({ reasoning }) => ({

253-

levels:

254-

reasoning === true

255-

? [{ id: "off" }, { id: "low" }, { id: "medium" }, { id: "high" }, { id: "max" }]

256-

: [{ id: "off" }],

257-

defaultLevel: "off",

258-

}),

253+

resolveThinkingProfile: resolveOllamaThinkingProfile,

259254

wrapStreamFn: createConfiguredOllamaCompatStreamWrapper,

260255

createEmbeddingProvider: async ({ config, model, provider: embeddingProvider, remote }) => {

261256

const { provider, client } = await createOllamaEmbeddingProvider({

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,6 @@

11

import type { ModelDefinitionConfig } from "openclaw/plugin-sdk/provider-model-types";

22

import { describe, expect, it } from "vitest";

3-

import { normalizeConfig } from "./provider-policy-api.js";

3+

import { normalizeConfig, resolveThinkingProfile } from "./provider-policy-api.js";

44

import { OLLAMA_DEFAULT_BASE_URL } from "./src/defaults.js";

55
66

function createModel(id: string, name: string): ModelDefinitionConfig {

@@ -58,4 +58,15 @@ describe("ollama provider policy public artifact", () => {

5858

}),

5959

).toEqual({});

6060

});

61+
62+

it("exposes max thinking for reasoning-capable models without full plugin activation", () => {

63+

expect(resolveThinkingProfile({ reasoning: true })).toEqual({

64+

levels: [{ id: "off" }, { id: "low" }, { id: "medium" }, { id: "high" }, { id: "max" }],

65+

defaultLevel: "off",

66+

});

67+

expect(resolveThinkingProfile({ reasoning: false })).toEqual({

68+

levels: [{ id: "off" }],

69+

defaultLevel: "off",

70+

});

71+

});

6172

});

Original file line numberDiff line numberDiff line change

@@ -1,8 +1,19 @@

1+

import type { ProviderThinkingProfile } from "openclaw/plugin-sdk/plugin-entry";

12

import type { ModelProviderConfig } from "openclaw/plugin-sdk/provider-model-types";

23

import { OLLAMA_DEFAULT_BASE_URL } from "./src/defaults.js";

34
45

type OllamaProviderConfigDraft = Partial<ModelProviderConfig>;

56
7+

const OLLAMA_REASONING_THINKING_PROFILE = {

8+

levels: [{ id: "off" }, { id: "low" }, { id: "medium" }, { id: "high" }, { id: "max" }],

9+

defaultLevel: "off",

10+

} satisfies ProviderThinkingProfile;

11+
12+

const OLLAMA_NON_REASONING_THINKING_PROFILE = {

13+

levels: [{ id: "off" }],

14+

defaultLevel: "off",

15+

} satisfies ProviderThinkingProfile;

16+
617

/**

718

* Provider policy surface for Ollama: normalize provider configs used by

819

* core defaults/normalizers. This runs during config defaults application and

@@ -38,3 +49,11 @@ export function normalizeConfig({

3849
3950

return next;

4051

}

52+
53+

export function resolveThinkingProfile({

54+

reasoning,

55+

}: {

56+

reasoning?: boolean;

57+

}): ProviderThinkingProfile {

58+

return reasoning ? OLLAMA_REASONING_THINKING_PROFILE : OLLAMA_NON_REASONING_THINKING_PROFILE;

59+

}