-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Add detector_params as optional for every detectors endpoint (found…
…ation-model-stack#212) Signed-off-by: Evaline Ju <[email protected]>
- Loading branch information
1 parent
363656c
commit d521e03
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,6 +232,11 @@ components: | |
allOf: | ||
- $ref: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml#/components/schemas/ChatCompletionRequestMessage | ||
- type: object | ||
detector_params: | ||
type: object | ||
default: {} | ||
title: Detector Parameters | ||
description: Optional detector parameters, used on a per-detector basis | ||
type: object | ||
required: | ||
- messages | ||
|
@@ -284,6 +289,9 @@ components: | |
- https://research.ibm.com/ | ||
detector_params: | ||
type: object | ||
default: {} | ||
title: Detector Parameters | ||
description: Optional detector parameters, used on a per-detector basis | ||
type: object | ||
required: | ||
- content | ||
|
@@ -407,6 +415,11 @@ components: | |
title: Generated Text | ||
description: Generated response from the LLM | ||
example: Some text generated by an LLM | ||
detector_params: | ||
type: object | ||
default: {} | ||
title: Detector Parameters | ||
description: Optional detector parameters, used on a per-detector basis | ||
type: object | ||
required: | ||
- prompt | ||
|
@@ -461,6 +474,11 @@ components: | |
example: >- | ||
Your email is [email protected]! Only the next instance of email will be | ||
processed. [email protected]. Your SSN is 123-45-6789. | ||
detector_params: | ||
type: object | ||
default: {} | ||
title: Detector Parameters | ||
description: Optional detector parameters, used on a per-detector basis | ||
type: object | ||
required: | ||
- contents | ||
|