Revert "docs: standardize Chat Payload and cURL"

This reverts commit 24e7c1213c25f0371b2c2e7f059bfbf1bcd9d342.
This commit is contained in:
Ho Duc Hieu 2024-01-05 08:16:49 +07:00
parent 24e7c1213c
commit f6a1105deb
2 changed files with 16 additions and 19 deletions

View File

@ -67,21 +67,18 @@ paths:
x-codeSamples: x-codeSamples:
- lang: cURL - lang: cURL
source: > source: >
curl http://localhost:1337/v1/chat/completions \ curl -X POST
-H "Content-Type: application/json" \ 'http://localhost:3982/inferences/llamacpp/chat_completion' \
-d '{ -H "Content-Type: application/json" \
"model": "tinyllama-1.1b", -d '{
"messages": [ "llama_model_path": "/path/to/your/model.gguf",
{ "messages": [
"role": "system", {
"content": "You are a helpful assistant." "role": "user",
}, "content": "hello"
{ },
"role": "user", ]
"content": "Hello!" }'
}
]
}'
/models: /models:
get: get:
operationId: listModels operationId: listModels

View File

@ -71,13 +71,13 @@ components:
description: | description: |
Contains input data or prompts for the model to process. Contains input data or prompts for the model to process.
example: example:
- content: "You are a helpful assistant." - content: "Hello there :wave:"
role: system role: assistant
- content: Hello! - content: Can you write a long story
role: user role: user
model: model:
type: string type: string
example: tinyllama-1.1b example: model-zephyr-7B
description: | description: |
Specifies the model being used for inference or processing tasks. Specifies the model being used for inference or processing tasks.
stream: stream: