Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance OllamaEngine to remove <think> blocks in response content #445

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

badraxas
Copy link
Contributor

Hello,

When utilizing the DeepSeek model via Ollama, responses generated by the reasoning model include reflective content encapsulated within and tags.
This additional information is intended for internal reasoning processes and is not suitable for commit messages. To ensure that only the conventional commit message is retained, it is necessary to remove any content enclosed within these tags.

I did this only for ollama, maybe it would be better to add an option to remove this kind of tag globally.

Copy link
Contributor

@satoru2727 satoru2727 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@di-sukharev di-sukharev merged commit 6816379 into di-sukharev:master Jan 30, 2025
5 checks passed
@badraxas badraxas deleted the feat/remove-thinking-tags branch January 30, 2025 10:13
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.

4 participants