Skip to content

Commit

Permalink
🔧 Add detector_params as optional for every detectors endpoint (found…
Browse files Browse the repository at this point in the history
…ation-model-stack#212)

Signed-off-by: Evaline Ju <[email protected]>
  • Loading branch information
evaline-ju authored Oct 4, 2024
1 parent 363656c commit d521e03
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/api/openapi_detector_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d521e03

Please sign in to comment.