Skip to content

Commit

Permalink
adding input to streaming and input/output to vision
Browse files Browse the repository at this point in the history
  • Loading branch information
jmansdorfer committed Jul 16, 2024
1 parent 5a52e9c commit ab263fc
Showing 1 changed file with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,13 @@ paths:
temperature: 1.0,
top_p: 1.0,
top_k: 50,
stream: true
stream: true,
input: [
{
pii: "replace",
pii_replace_method: "random"
}
]
}
responses:
'403':
Expand Down Expand Up @@ -462,6 +468,29 @@ paths:
top_k:
type: integer
description: The diversity of the generated text based on top-k sampling.
output:
type: object
description: Options to affect the output of the response.
properties:
factuality:
type: boolean
description: Set to true to turn on factuality processing.
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:
block_prompt_injection:
type: boolean
description: Set to true to turn on factuality processing.
pii:
type: string
description: Set to either 'block' or 'replace'.
pii_replace_method:
type: string
description: Set to either 'random', 'fake', 'category', 'mask'.
examples:
basic:
summary: A basic example of using the API.
Expand All @@ -487,7 +516,19 @@ paths:
max_tokens: 1000,
temperature: 1.0,
top_p: 1.0,
top_k: 50
top_k: 50,
output: [
{
factuality: true,
toxicity: true
}
],
input: [
{
pii: "replace",
pii_replace_method: "random"
}
]
}
responses:
'403':
Expand Down

0 comments on commit ab263fc

Please sign in to comment.