davsclaus opened a new pull request, #3370:
URL: https://github.com/apache/camel-kamelets/pull/3370

   Follow-up of #3365 for the camel-openai changes in apache/camel#30620:
   
   - **`apiKey`** 
([CAMEL-27402](https://issues.apache.org/jira/browse/CAMEL-27402)): without a 
key and without `OPENAI_API_KEY`, the requests go out without a key, which 
suits a local server such as Ollama. The description no longer asks for a dummy 
value such as `none`.
   - **`jsonSchemaStrict`** 
([CAMEL-27403](https://issues.apache.org/jira/browse/CAMEL-27403)), a new 
property, default `false`: the model follows `jsonSchema` exactly (`strict: 
true` in the `response_format`). Its description gives OpenAI's rules for a 
strict schema: every property listed in `required`, and `additionalProperties: 
false` on every object. OpenAI answers any other schema with status 400.
   
   Tests (`OpenAiIT`, 3/3 green locally with a Camel build that includes 
b805517674):
   - The JSON test sends no API key at all, and the first message asks with 
`jsonSchemaStrict: true`, so the stub expects `"strict": true`. The second 
message checks the default, where `strict` is not sent.
   - A fix to that test: its choice between the inline schema and the schema 
file reads `CamelTimerCounter`, which the timer sets only with 
`includeMetadata=true`. So both messages took the schema file, and the inline 
JSON schema was never tested. The timer now sets `includeMetadata`.
   
   CI needs a Camel snapshot that includes apache/camel@b805517674.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
   


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