docs(ollama): fix NDJSON code block language identifier

Change language from 'json' to 'ndjson' for NDJSON examples since
they contain multiple JSON objects which is not valid standard JSON.
This commit is contained in:
YanzheL
2026-04-02 03:07:22 +08:00
parent 804ca0b988
commit 0e8f5dd130
+1 -1
View File
@@ -16,7 +16,7 @@ This occurs when agents attempt tool calls (e.g., `explore` agent using `mcp_gre
Ollama returns **NDJSON** (newline-delimited JSON) when `stream: true` is used in API requests:
```json
```ndjson
{"message":{"tool_calls":[{"function":{"name":"read","arguments":{"filePath":"README.md"}}}]}, "done":false}
{"message":{"content":""}, "done":true}
```