JiriOndrusek opened a new issue, #9599:
URL: https://github.com/apache/camel-quarkus/issues/9599

   The `ollama` profile of `integration-tests/ai-tool-langchain4j` has two 
tests against a real LLM. They run in no CI job, and two things limit them:
   - The wrong-tag test only asserts that `1111` is absent from the answer, 
which a real model can satisfy by chance. It does not check what the model was 
offered.
   - The tests can only use a dev services container. Other Ollama test modules 
(for example `langchain4j-chat`) accept `LANGCHAIN4J_OLLAMA_BASE_URL` for an 
Ollama the user already has.
   
   Proposed change:
   - Record the tools offered to the model with a `ChatModelListener` and 
assert that the wrong-tag service gets exactly `getNews`.
   - Use `LANGCHAIN4J_OLLAMA_BASE_URL` when it is set (no dev service then), 
and document it in the module `README.adoc`.
   
   Checked with a local Ollama (`qwen3:1.7b`): `-Pollama` passes (16 of 16). 
The default tests are unchanged (14 pass, 2 skipped).


-- 
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