Merge pull request #3009 from YanzheL/fix/ollama-ndjson-markup
docs(ollama): fix NDJSON code block language identifier
This commit is contained in:
@@ -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:
|
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":{"tool_calls":[{"function":{"name":"read","arguments":{"filePath":"README.md"}}}]}, "done":false}
|
||||||
{"message":{"content":""}, "done":true}
|
{"message":{"content":""}, "done":true}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user