From c3454f0f257f8c370ee02ab27ef85b3936b515e8 Mon Sep 17 00:00:00 2001 From: jmansdorfer Date: Tue, 23 Jul 2024 11:38:41 -0400 Subject: [PATCH] adding model list examples to api reference --- ...ard-Prediction-Guard-API-1.0-resolved.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/fern/openapi/Prediction-Guard-Prediction-Guard-API-1.0-resolved.yaml b/fern/openapi/Prediction-Guard-Prediction-Guard-API-1.0-resolved.yaml index 8491a2d..9a9d543 100644 --- a/fern/openapi/Prediction-Guard-Prediction-Guard-API-1.0-resolved.yaml +++ b/fern/openapi/Prediction-Guard-Prediction-Guard-API-1.0-resolved.yaml @@ -208,6 +208,25 @@ 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 + example: | + [ + "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: @@ -774,6 +793,25 @@ 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 + example: | + [ + "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: @@ -894,6 +932,21 @@ 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 + example: | + [ + "bridgetower-large-itm-mlm-itc" + ] + /factuality: post: summary: Factuality