mirror of
https://github.com/ollama/ollama.git
synced 2026-04-21 16:25:42 +02:00
WIP updated routes
This commit is contained in:
10
docs/api.md
10
docs/api.md
@@ -1506,8 +1506,8 @@ POST /api/tokenize
|
||||
|
||||
```shell
|
||||
curl -X POST http://localhost:11434/api/tokenize -d '{
|
||||
"model": "llama3.1:8b",
|
||||
"text": "Why the sky is blue?"
|
||||
"model": "llama3.2",
|
||||
"text": "Why is the sky blue?"
|
||||
}'
|
||||
```
|
||||
|
||||
@@ -1538,15 +1538,15 @@ POST /api/detokenize
|
||||
|
||||
```shell
|
||||
curl -X POST http://localhost:11434/api/detokenize -d '{
|
||||
"model": "llama3.1:8b",
|
||||
"tokens": [10445,279,13180,374,6437,30]
|
||||
"model": "llama3.2",
|
||||
"tokens": [10445,374,279,13180,6437,30]
|
||||
}'
|
||||
```
|
||||
|
||||
#### Response
|
||||
|
||||
```json
|
||||
{"text":"Why the sky is blue?"}
|
||||
{"text":"Why is the sky blue?"}
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user