Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding model list examples to api reference #26

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ paths:
text/plain:
schema:
type: string
example: |
examples: {
The Prediction Guard API is healthy!
}

/chat/completions:
post:
Expand Down Expand Up @@ -208,6 +209,26 @@ paths:
}
security:
- ApiKeyCredentials: []
get:
summary: List Chat Models
description: A simple endpoint to check what models are available in the /chat/completions endpoint.
responses:
'200':
description: Successful response with an array of LLMs.
content:
text/plain:
schema:
type: string
examples: {
[
"Hermes-2-Pro-Mistral-7B",
"Neural-Chat-7B",
"llama-3-sqlcoder-8b",
"deepseek-coder-6.7b-instruct",
"Hermes-2-Pro-Llama-3-8B",
"llava-1.5-7b-hf"
]
}

/chat/completions - Streaming Version:
post:
Expand Down Expand Up @@ -774,6 +795,26 @@ paths:
}
security:
- ApiKeyCredentials: []
get:
summary: List Completions Models
description: A simple endpoint to check what models are available in the /completions endpoint.
responses:
'200':
description: Successful response with an array of LLMs.
content:
text/plain:
schema:
type: string
examples: {
[
"Hermes-2-Pro-Mistral-7B",
"Nous-Hermes-Llama2-13B",
"Neural-Chat-7B",
"llama-3-sqlcoder-8b",
"deepseek-coder-6.7b-instruct",
"Hermes-2-Pro-Llama-3-8B"
]
}

/embedding:
post:
Expand Down Expand Up @@ -894,6 +935,22 @@ paths:
security:
- ApiKeyCredentials: []

get:
summary: List Embeddings Models
description: A simple endpoint to check what models are available in the /embeddings endpoint.
responses:
'200':
description: Successful response with an array of embeddings generation models.
content:
text/plain:
schema:
type: string
examples: {
[
"bridgetower-large-itm-mlm-itc"
]
}

/factuality:
post:
summary: Factuality
Expand Down
Loading