gnodet opened a new pull request, #23910:
URL: https://github.com/apache/camel/pull/23910

   [CAMEL-23728](https://issues.apache.org/jira/browse/CAMEL-23728)
   
   ## Summary
   
   - Map pre-4.6 Claude model aliases (e.g., `claude-sonnet-4-5`) to their 
Vertex AI versioned identifiers (e.g., `claude-sonnet-4-5@20250929`). Models 
using the 4.6+ dateless format or already containing `@` pass through unchanged.
   - Parse non-JSON error responses (HTML 404 pages) gracefully instead of 
dumping raw HTML to the terminal. For JSON errors, extract the `error.message` 
field. Add a 404-specific hint when using Vertex AI.
   - Collect streaming response bodies on error instead of using a hardcoded 
"Streaming request failed" message.
   
   ## Test plan
   
   - [x] New `LlmClientVertexTest` with 9 tests covering model mapping and 
error message extraction
   - [ ] Manual: run `camel ask` with `CLOUD_ML_REGION` and 
`ANTHROPIC_VERTEX_PROJECT_ID` set, using a pre-4.6 model name
   
   _Claude Code on behalf of Guillaume Nodet_


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