Skip to content

Commit

Permalink
adding truncate variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jmansdorfer committed Oct 17, 2024
1 parent 1c58aa4 commit c85c8ec
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ paths:
required:
- model
- input
- truncate
- truncation_direction
type: object
properties:
model:
Expand All @@ -768,12 +770,20 @@ paths:
image:
type: string
description: The base64 encoding of an image. You can choose to provide this or not.
truncate:
type: bool
description: Boolean setting whether to truncate inputs. Not supported by bridgetower.
truncation_direction:
type: string
description: Which direction to truncate, "Left" or "Right". Not supported by bridgetower.
examples:
basic:
summary: A text example of using the API.
value:
model: "multilingual-e5-large-instruct"
input: "A person is ironing something while standing on the back of a taxi."
truncate: true
truncation_direction: "Right"
multimodal:
summary: A multimodal example of using the API.
value:
Expand Down

0 comments on commit c85c8ec

Please sign in to comment.