Skip to content

Add raw parameter to GenerationRequest#197

Merged
pepperoni21 merged 1 commit into
pepperoni21:masterfrom
m13253:feature-raw-mode
Jun 4, 2025
Merged

Add raw parameter to GenerationRequest#197
pepperoni21 merged 1 commit into
pepperoni21:masterfrom
m13253:feature-raw-mode

Conversation

@m13253
Copy link
Copy Markdown
Contributor

@m13253 m13253 commented May 24, 2025

According to the Ollama API documentation, /api/generate has a parameter called raw, which can bypass the built-in templating mechanism.

I am developing a project that needs this feature, and noticed ollama-rs doesn’t have it. Therefore, I added this parameter to ollama-rs.

This change looks small, so I hope it won’t introduce new bugs. But I would appreciate it if anyone could help me perform more tests.

@m13253 m13253 force-pushed the feature-raw-mode branch from 6409a35 to 8c1f39a Compare May 24, 2025 12:13
@pepperoni21 pepperoni21 merged commit d2e663c into pepperoni21:master Jun 4, 2025
2 of 3 checks passed
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.

2 participants