apupier commented on code in PR #24097:
URL: https://github.com/apache/camel/pull/24097#discussion_r3433449547


##########
components/camel-ai/camel-kserve/src/main/docs/kserve-component.adoc:
##########
@@ -145,13 +147,15 @@ void postprocess(Exchange exchange) {
 }
 ----
 
+._Java-only: requires protobuf ModelInferRequest builder with header overrides_
+
 .Specify the model name and version with headers
 [source,java]
 ----
 from("direct:infer-with-headers")
     .setBody(constant(createRequest()))
-    .setHeader(KServeConstants.MODEL_NAME, constant("simple"))
-    .setHeader(KServeConstants.MODEL_VERSION, constant("1"))
+    .setHeader("CamelKServeModelName", constant("simple"))
+    .setHeader("CamelKServeModelVersion", constant("1"))

Review Comment:
   I think we shoudl show using the constants which is a better practice



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to