Skip to content

Fix "strip_thinking function" and "default model name for OpenClaw requests"#53

Open
zlh-source wants to merge 4 commits intoGen-Verse:mainfrom
zlh-source:fix_Qwen3-Thinking
Open

Fix "strip_thinking function" and "default model name for OpenClaw requests"#53
zlh-source wants to merge 4 commits intoGen-Verse:mainfrom
zlh-source:fix_Qwen3-Thinking

Conversation

@zlh-source
Copy link
Copy Markdown

  1. To reinforce the model’s “thinking” mechanism, the default chat template of Qwen3-4B-Thinking-2507 automatically includes the <think> tag. As a result, the model output only contains the closing </think> tag, without an explicit opening <think> tag. This causes the original strip_thinking function to fail. Reference: https://huggingface.co/Qwen/Qwen3-4B-Thinking-2507

  2. OpenClaw treats the OpenAI model field as an agent target rather than a raw provider model ID. Therefore, valid model names include "openclaw", "openclaw/default", and "openclaw/<agentId>", but do not include "default". Reference: https://docs.openclaw.ai/gateway/openai-http-api#agent-first-model-contract

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant