diff --git a/router/src/http/types.rs b/router/src/http/types.rs index 4a83a3f8..60122888 100644 --- a/router/src/http/types.rs +++ b/router/src/http/types.rs @@ -375,6 +375,7 @@ pub(crate) struct SimilarityInput { pub(crate) struct SimilarityParameters { #[schema(default = "false", example = "false", nullable = true)] pub truncate: Option, + #[serde(default)] #[schema(default = "right", example = "right")] pub truncation_direction: TruncationDirection, /// The name of the prompt that should be used by for encoding. If not set, no prompt