Unverified Commit ad22ace4 authored by Davide Bertoni's avatar Davide Bertoni Committed by GitHub
Browse files

docs: add missing json and shell code blocks in api.md (#8766)

parent f4321a42
...@@ -306,7 +306,7 @@ curl http://localhost:11434/api/generate -d '{ ...@@ -306,7 +306,7 @@ curl http://localhost:11434/api/generate -d '{
#### Response #### Response
``` ```json
{ {
"model": "llava", "model": "llava",
"created_at": "2023-11-03T15:36:02.583064Z", "created_at": "2023-11-03T15:36:02.583064Z",
...@@ -795,7 +795,7 @@ curl http://localhost:11434/api/chat -d '{ ...@@ -795,7 +795,7 @@ curl http://localhost:11434/api/chat -d '{
##### Request ##### Request
``` ```shell
curl http://localhost:11434/api/chat -d '{ curl http://localhost:11434/api/chat -d '{
"model": "llama3.2", "model": "llama3.2",
"messages": [ "messages": [
...@@ -870,7 +870,7 @@ If the messages array is empty, the model will be loaded into memory. ...@@ -870,7 +870,7 @@ If the messages array is empty, the model will be loaded into memory.
##### Request ##### Request
``` ```shell
curl http://localhost:11434/api/chat -d '{ curl http://localhost:11434/api/chat -d '{
"model": "llama3.2", "model": "llama3.2",
"messages": [] "messages": []
...@@ -897,7 +897,7 @@ If the messages array is empty and the `keep_alive` parameter is set to `0`, a m ...@@ -897,7 +897,7 @@ If the messages array is empty and the `keep_alive` parameter is set to `0`, a m
##### Request ##### Request
``` ```shell
curl http://localhost:11434/api/chat -d '{ curl http://localhost:11434/api/chat -d '{
"model": "llama3.2", "model": "llama3.2",
"messages": [], "messages": [],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment