Skip to content

Commit

Permalink
testing change
Browse files Browse the repository at this point in the history
  • Loading branch information
ardan-bkennedy committed Jun 5, 2024
1 parent 79d6ba2 commit dd3aec9
Showing 1 changed file with 47 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ paths:
- ApiKeyCredentials: []
components:
schemas:

inline_response_200_2_response:
type: object
properties:
Expand All @@ -287,6 +288,7 @@ components:
Score:
type: number
description: The translation quality score.

completions_body:
required:
- model
Expand All @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -374,6 +405,7 @@ components:
content:
type: string
description: The content of the message.

injection_body:
required:
- detect
Expand All @@ -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
Expand All @@ -409,6 +429,7 @@ components:
type: string
description: The text to be scored for toxicity.
additionalProperties: false

factuality_body:
required:
- reference
Expand All @@ -422,6 +443,7 @@ components:
type: string
description: The text to be checked for factuality.
additionalProperties: false

PII_body:
required:
- prompt
Expand All @@ -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
Expand All @@ -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
Expand All @@ -473,6 +497,7 @@ components:
type: string
description: The status of the injection detection.
additionalProperties: false

inline_response_200_3_checks:
required:
- index
Expand All @@ -490,6 +515,7 @@ components:
type: string
description: The status of the replacement.
additionalProperties: false

inline_response_200_1:
type: object
properties:
Expand All @@ -507,6 +533,7 @@ components:
type: string
description: Type of object (factuality check).
additionalProperties: false

inline_response_200_1_checks:
required:
- index
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -568,6 +598,7 @@ components:
type: string
description: Type of object (PII check).
additionalProperties: false

inline_response_200_4:
type: object
properties:
Expand All @@ -585,6 +616,7 @@ components:
type: string
description: Type of object (injection check).
additionalProperties: false

securitySchemes:
ApiKeyCredentials:
type: apiKey
Expand Down

0 comments on commit dd3aec9

Please sign in to comment.