[GH-ISSUE #8126] Getting "invalid format: expected "json" or a JSON schema" error when making request to ollama api #5190

Closed
opened 2026-04-12 16:19:13 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @lharrison13 on GitHub (Dec 17, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8126

What is the issue?

Getting invalid format: expected "json" or a JSON schema error when making request to ollama chat endpoint. See below issues:

https://github.com/danielmiessler/fabric/issues/1209
https://github.com/langchain-ai/langchain/issues/28753

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.5.2

Originally created by @lharrison13 on GitHub (Dec 17, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8126 ### What is the issue? Getting `invalid format: expected "json" or a JSON schema` error when making request to ollama chat endpoint. See below issues: https://github.com/danielmiessler/fabric/issues/1209 https://github.com/langchain-ai/langchain/issues/28753 ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.5.2
GiteaMirror added the bug label 2026-04-12 16:19:13 -05:00
Author
Owner

@lharrison13 commented on GitHub (Dec 17, 2024):

fixed by https://github.com/ollama/ollama/releases/tag/v0.5.3. Thanks @jmorganca!

<!-- gh-comment-id:2548165250 --> @lharrison13 commented on GitHub (Dec 17, 2024): fixed by https://github.com/ollama/ollama/releases/tag/v0.5.3. Thanks @jmorganca!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5190