davsclaus commented on PR #30725:
URL: https://github.com/apache/camel/pull/30725#issuecomment-7214141779

   @gnodet I pushed 1939945c0a6c to this branch for point 1 of my last review 
(`--api-type=ollama` with a `/v1` URL):
   
   - `isEndpointReachable()` now skips the `/v1/models` probe when the api type 
is `ollama`. Ollama answers `/v1/models` itself (its OpenAI-compatible API), so 
`--url http://host:11434/v1` still passed detection and then failed on 
`/v1/api/generate`. The api types `null` and `openai` are unchanged, as is the 
Ollama probe of the root URL of `camel infra` and the default 
`http://localhost:11434`, which answer `/api/tags` first.
   - New test `withApiTypeOllamaAndV1UrlIsNotReachable`: `FakeLlmServer` 
answers both `/api/tags` and `/v1/models` at its root, as Ollama does. The root 
URL is detected, and `/v1` and `/v1/` are not. It fails without the change (on 
the `/v1` assertion), and all 102 `LlmClient*` tests pass with it.
   
   Still open is only the follow-up JIRA for the 401/403 message (point 2): 
could you add its key here?
   
   _Claude Code on behalf of Claus Ibsen_
   


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