ramu11 commented on code in PR #29722:
URL: https://github.com/apache/camel/pull/29722#discussion_r4560087857
##########
components/camel-ai/camel-ai-resource/src/main/java/org/apache/camel/component/ai/resource/AiResourceExecutor.java:
##########
@@ -52,47 +52,47 @@ private AiResourceExecutor() {
* @return an {@link AiResourceResult} classifying the outcome;
never null
*/
public static AiResourceResult execute(AiResourceSpec spec, Exchange
exchange) {
- String uri = spec.getUri();
+ String resourceName = spec.getName();
DefaultConsumer consumer = spec.getConsumer();
if (consumer == null) {
IllegalStateException cause = new IllegalStateException(
- String.format("No consumer available for resource '%s'",
uri));
+ String.format("No consumer available for resource '%s'",
spec.getUri()));
return new AiResourceResult.ExecutionError(cause.getMessage(),
cause);
}
Review Comment:
resolved
--
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]