WIP updated routes

This commit is contained in:
ParthSareen
2024-12-16 15:49:28 -08:00
parent f0a5f7994b
commit e679885733
3 changed files with 71 additions and 24 deletions

View File

@@ -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?"}
```