@@ -25,6 +25,9 @@ pub struct UninitializedGatewayConfig {
2525 // If set, all of the HTTP endpoints will have this path prepended.
2626 // E.g. a base path of `/custom/prefix` will cause the inference endpoint to become `/custom/prefix/inference`.
2727 pub base_path : Option < String > ,
28+ // If set to `true`, disables validation on feedback queries (read from ClickHouse to check that the target is valid)
29+ #[ serde( default ) ]
30+ pub unstable_disable_feedback_target_validation : bool ,
2831 /// If enabled, adds an 'error_json' field alongside the human-readable 'error' field
2932 /// in HTTP error responses. This contains a JSON-serialized version of the error.
3033 /// While 'error_json' will always be valid JSON when present, the exact contents is unstable,
@@ -63,6 +66,8 @@ impl UninitializedGatewayConfig {
6366 export : self . export ,
6467 base_path : self . base_path ,
6568 unstable_error_json : self . unstable_error_json ,
69+ unstable_disable_feedback_target_validation : self
70+ . unstable_disable_feedback_target_validation ,
6671 } )
6772 }
6873}
@@ -80,6 +85,7 @@ pub struct GatewayConfig {
8085 // E.g. a base path of `/custom/prefix` will cause the inference endpoint to become `/custom/prefix/inference`.
8186 pub base_path : Option < String > ,
8287 pub unstable_error_json : bool ,
88+ pub unstable_disable_feedback_target_validation : bool ,
8389}
8490
8591fn serialize_optional_socket_addr < S > (
0 commit comments