Skip to content

Commit 29f728e

Browse files
authored
fix: add serde default for truncation direction (#399)
1 parent 9ec8f34 commit 29f728e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

router/src/http/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ pub(crate) struct SimilarityInput {
375375
pub(crate) struct SimilarityParameters {
376376
#[schema(default = "false", example = "false", nullable = true)]
377377
pub truncate: Option<bool>,
378+
#[serde(default)]
378379
#[schema(default = "right", example = "right")]
379380
pub truncation_direction: TruncationDirection,
380381
/// The name of the prompt that should be used by for encoding. If not set, no prompt

0 commit comments

Comments
 (0)