From dd3aec97cad5a9be96342afb212a633ce7477c7e Mon Sep 17 00:00:00 2001 From: William Kennedy Date: Wed, 5 Jun 2024 11:16:28 -0400 Subject: [PATCH] testing change --- ...ard-Prediction-Guard-API-1.0-resolved.yaml | 62 ++++++++++++++----- 1 file changed, 47 insertions(+), 15 deletions(-) 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 dfd7958..a305db8 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 @@ -278,6 +278,7 @@ paths: - ApiKeyCredentials: [] components: schemas: + inline_response_200_2_response: type: object properties: @@ -287,6 +288,7 @@ components: Score: type: number description: The translation quality score. + completions_body: required: - model @@ -299,8 +301,15 @@ components: messages: type: array description: "The conversation history with roles (user, assistant) and messages." - items: - $ref: "#/components/schemas/completions_messages" + properties: + role: + type: string + description: The role of the sender (user or assistant). + required: true + content: + type: string + description: The content of the message. + required: true max_tokens: type: integer description: The maximum number of tokens in the generated completion. @@ -320,7 +329,29 @@ components: toxicity: type: boolean description: Set to true to turn on toxicity processing. + input: + type: object + description: Options to affect the input of the request. + properties: + factuality: + type: boolean + description: Set to true to turn on factuality processing. additionalProperties: false + + completions_messages: + required: + - content + - role + type: object + properties: + role: + type: string + description: The role of the sender (user or assistant). + content: + type: string + description: The content of the message. + additionalProperties: false + translate_body: required: - source_lang @@ -374,6 +405,7 @@ components: content: type: string description: The content of the message. + injection_body: required: - detect @@ -387,19 +419,7 @@ components: type: boolean description: Specify whether to detect potential injection attacks. additionalProperties: false - completions_messages: - required: - - content - - role - type: object - properties: - role: - type: string - description: The role of the sender (user or assistant). - content: - type: string - description: The content of the message. - additionalProperties: false + toxicity_body: required: - text @@ -409,6 +429,7 @@ components: type: string description: The text to be scored for toxicity. additionalProperties: false + factuality_body: required: - reference @@ -422,6 +443,7 @@ components: type: string description: The text to be checked for factuality. additionalProperties: false + PII_body: required: - prompt @@ -439,6 +461,7 @@ components: type: string description: The method to use for replacing personal information. additionalProperties: false + inline_response_200_5_checks: required: - index @@ -456,6 +479,7 @@ components: type: string description: The status of the toxicity check for the provided text. additionalProperties: false + inline_response_200_4_checks: required: - index @@ -473,6 +497,7 @@ components: type: string description: The status of the injection detection. additionalProperties: false + inline_response_200_3_checks: required: - index @@ -490,6 +515,7 @@ components: type: string description: The status of the replacement. additionalProperties: false + inline_response_200_1: type: object properties: @@ -507,6 +533,7 @@ components: type: string description: Type of object (factuality check). additionalProperties: false + inline_response_200_1_checks: required: - index @@ -524,6 +551,7 @@ components: type: string description: The status of the factuality check for a specific statement. additionalProperties: false + inline_response_200: type: object properties: @@ -545,12 +573,14 @@ components: items: $ref: "#/components/schemas/inline_response_200_choices" additionalProperties: false + inline_response_200_2: type: object properties: response: $ref: "#/components/schemas/inline_response_200_2_response" additionalProperties: false + inline_response_200_3: type: object properties: @@ -568,6 +598,7 @@ components: type: string description: Type of object (PII check). additionalProperties: false + inline_response_200_4: type: object properties: @@ -585,6 +616,7 @@ components: type: string description: Type of object (injection check). additionalProperties: false + securitySchemes: ApiKeyCredentials: type: apiKey