[ 
https://issues.apache.org/jira/browse/CAMEL-24536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-24536 started by Andrea Cosentino.
------------------------------------------------
> camel-langchain4j-embeddings: OpenAiEmbeddingModelBuilder never enables 
> response logging
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24536
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24536
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-langchain4j-embeddings
>            Reporter: Andrea Cosentino
>            Assignee: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.23.0
>
>
> OpenAiEmbeddingModelBuilder configures the OpenAI embedding model with:
>     .logRequests(logRequests)   // line 75
>     .logRequests(logResponses)  // line 76
> Line 76 calls logRequests a second time using the logResponses flag, instead 
> of calling .logResponses(logResponses). As a result:
> - the logResponses option is never applied — response logging cannot be 
> turned on, and
> - logRequests is silently overwritten by the value of logResponses.
> The logResponses field and its setter exist (lines 31 and 63), so the option 
> is fully wired everywhere except this builder call. Fix: change line 76 to 
> .logResponses(logResponses).
> _Claude Code on behalf of oscerd_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to