Skip to content

[codex] fix: remove think tags from LLM output#230

Draft
Suiying6023 wants to merge 1 commit into
YILING0013:mainfrom
Suiying6023:codex/remove-think-tags-from-llm-output
Draft

[codex] fix: remove think tags from LLM output#230
Suiying6023 wants to merge 1 commit into
YILING0013:mainfrom
Suiying6023:codex/remove-think-tags-from-llm-output

Conversation

@Suiying6023
Copy link
Copy Markdown

Summary

  • Wire the existing remove_think_tags() helper into invoke_with_cleaning() so LLM responses no longer preserve <think>...</think> reasoning blocks.
  • Add unit coverage for direct tag stripping and the full LLM cleaning path.

Why

MiniMax and similar reasoning models can return hidden reasoning inside <think> tags. The helper existed, but the shared LLM invocation path did not call it, so those blocks could leak into generated novel output.

Fixes #215.

Validation

  • python -m unittest tests.test_common
  • python -m unittest discover -s tests

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.

[Opinion]: 在调用minimax模型时会返回<think>内容

1 participant