Claus Ibsen created CAMEL-26514:
-----------------------------------

             Summary: camel-langchain4j-embeddings - the 
CamelLangChain4jEmbeddingsResponseModel header is never set
                 Key: CAMEL-26514
                 URL: https://issues.apache.org/jira/browse/CAMEL-26514
             Project: Camel
          Issue Type: Improvement
          Components: camel-langchain4j-embeddings
            Reporter: Claus Ibsen
             Fix For: 4.24.0


Found while fixing CAMEL-26205. The producer calls the 
{{EmbeddingModel.embed(TextSegment)}} / {{embedAll(List)}} API, whose 
{{Response}} does not carry the model name, so the documented response model 
header is never set (and the GenAI usage has no response model).

Options:
* switch the producer to {{embed(EmbeddingRequest)}}, whose 
{{EmbeddingResponse.modelName()}} gives the model. Note: a model or test mock 
that only overrides {{embed(TextSegment)}} is then bypassed, and 
{{EmbeddingResponse}} has no finish reason;
* or deprecate the header.

Recommendation: the first option.

_Claude Code on behalf of Claus Ibsen (davsclaus)_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to