Skip to content

Strip <think>...</think> blocks from model output - #34

Open
leohearts wants to merge 1 commit into
simonw:mainfrom
leohearts:main
Open

leohearts wants to merge 1 commit into
simonw:mainfrom
leohearts:main

Conversation

@leohearts

Copy link
Copy Markdown

Thinking models emit reasoning wrapped in tags alongside the command; passing it straight to the shell caused a syntax error. Fixes #27

Also fix test_plugin_is_installed: newer llm loads plugins lazily, so tests must call load_plugins() first.

Thinking models emit reasoning wrapped in <think> tags alongside the
command; passing it straight to the shell caused a syntax error.
Fixes simonw#27

Also fix test_plugin_is_installed: newer llm loads plugins lazily,
so tests must call load_plugins() first.

This branch has not been deployed

No deployments
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.

Doesent work with thinking models

1 participant