mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-08 12:15:22 +00:00
api.md
cleanup & formatting
This commit is contained in:
parent
55978c1dc9
commit
2a2fa3c329
@ -27,7 +27,6 @@ All durations are returned in nanoseconds.
|
|||||||
|
|
||||||
Certain endpoints stream responses as JSON objects and can optional return non-streamed responses.
|
Certain endpoints stream responses as JSON objects and can optional return non-streamed responses.
|
||||||
|
|
||||||
|
|
||||||
## Generate a completion
|
## Generate a completion
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@ -235,6 +234,7 @@ curl http://localhost:11434/api/generate -d '{
|
|||||||
#### Request (Raw Mode)
|
#### Request (Raw Mode)
|
||||||
|
|
||||||
In some cases, you may wish to bypass the templating system and provide a full prompt. In this case, you can use the `raw` parameter to disable templating. Also note that raw mode will not return a context.
|
In some cases, you may wish to bypass the templating system and provide a full prompt. In this case, you can use the `raw` parameter to disable templating. Also note that raw mode will not return a context.
|
||||||
|
|
||||||
##### Request
|
##### Request
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@ -306,8 +306,7 @@ curl http://localhost:11434/api/generate -d '{
|
|||||||
"embedding_only": false,
|
"embedding_only": false,
|
||||||
"rope_frequency_base": 1.1,
|
"rope_frequency_base": 1.1,
|
||||||
"rope_frequency_scale": 0.8,
|
"rope_frequency_scale": 0.8,
|
||||||
"num_thread": 8,
|
"num_thread": 8
|
||||||
"cache": true
|
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
@ -625,7 +624,6 @@ HEAD /api/blobs/:digest
|
|||||||
|
|
||||||
Ensures that the file blob used for a FROM or ADAPTER field exists on the server. This is checking your Ollama server and not Ollama.ai.
|
Ensures that the file blob used for a FROM or ADAPTER field exists on the server. This is checking your Ollama server and not Ollama.ai.
|
||||||
|
|
||||||
|
|
||||||
#### Query Parameters
|
#### Query Parameters
|
||||||
|
|
||||||
- `digest`: the SHA256 digest of the blob
|
- `digest`: the SHA256 digest of the blob
|
||||||
|
Loading…
x
Reference in New Issue
Block a user