Lambdua / openai4j

Java client library for OpenAI API.Full support for all OpenAI API models including Completions, Chat, Edits, Embeddings, Audio, Files, Assistants-v2, Images, Moderations, Batch, and Fine-tuning.
MIT License
331 stars 31 forks source link

make strict work for function definition #74

Closed terryyin closed 1 week ago

terryyin commented 1 week ago

strict field is used in the current implementation. And when strict is true the addtionalProperies: false field also need to be set.

There is an additional requirement for strict=true, which is the required field must not be empty.

Lambdua commented 1 week ago

thanks