Encourage self-hosted ollama to generate valid json response #8

Open
opened 2025-04-09 14:55:26 +00:00 by tcsenpai · 0 comments
Owner

Originally created by @fengwang on 9/16/2024

When I was testing with self-hosted ollama models such as llama3.1 70b and gemma2 27b, I noticed for most of the time, ollama does not generate valid json response. I found this can be fixed by passing an extra parameter to ollama api.

*Originally created by @fengwang on 9/16/2024* When I was testing with self-hosted ollama models such as llama3.1 70b and gemma2 27b, I noticed for most of the time, ollama does not generate valid json response. I found this can be fixed by passing an extra parameter to ollama api.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tcsenpai/multi1#8
No description provided.