openai4j icon indicating copy to clipboard operation
openai4j copied to clipboard

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.

Results 7 openai4j issues
Sort by recently updated
recently updated
newest added

Using the new `FunctionDefinition` returns this on azure's `gpt-4-turbo` ```json "error": { "message": "1 validation error for Request\nbody -> tools\n extra fields not permitted (type=value_error.extra)", "type": "invalid_request_error", "param": null, "code":...

I am the maintainer of this open-source library, and I developed it based on the openai Java library. Currently, the JDK 8 version is no longer suitable for my own...

enhancement
good first issue

执行测试用例时,对应messageChunk获取的arguments类型还是objectNode,导致解析为空 ![image](https://github.com/Lambdua/openai4j/assets/33977935/ee23b15e-25b4-4477-aabc-3fee7c7a4f31) 我需要在初始化时做什么操作吗,设定不同的序列化方式?

enhancement

删除deserializer中是否为json的判断 openaiservice中function call对象改为了局部变量,qwen流式返回function call时,最后一个会带有finishReason但是没有具体的function call结果,导致重复进入解析,所以改为局部变量进行判断

[Use Uploads to upload large files in multiple parts.](https://platform.openai.com/docs/changelog/uploads) https://platform.openai.com/docs/api-reference/uploads 最近更新支持

enhancement

目前想要自定义注入拦截器比较复杂,应该在构造函数上添加更灵活的定制化需求

enhancement

service应该默认支持重试机制

enhancement