From ad22ace439eb3fab7230134e56bb6276a78347e4 Mon Sep 17 00:00:00 2001 From: Davide Bertoni <121551954+Bert0ns@users.noreply.github.com> Date: Sun, 2 Feb 2025 22:12:55 +0100 Subject: [PATCH] docs: add missing json and shell code blocks in api.md (#8766) --- docs/api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api.md b/docs/api.md index e9719ad4e..5d1b7d648 100644 --- a/docs/api.md +++ b/docs/api.md @@ -306,7 +306,7 @@ curl http://localhost:11434/api/generate -d '{ #### Response -``` +```json { "model": "llava", "created_at": "2023-11-03T15:36:02.583064Z", @@ -795,7 +795,7 @@ curl http://localhost:11434/api/chat -d '{ ##### Request -``` +```shell curl http://localhost:11434/api/chat -d '{ "model": "llama3.2", "messages": [ @@ -870,7 +870,7 @@ If the messages array is empty, the model will be loaded into memory. ##### Request -``` +```shell curl http://localhost:11434/api/chat -d '{ "model": "llama3.2", "messages": [] @@ -897,7 +897,7 @@ If the messages array is empty and the `keep_alive` parameter is set to `0`, a m ##### Request -``` +```shell curl http://localhost:11434/api/chat -d '{ "model": "llama3.2", "messages": [],