Commit Graph
8 Commits
Author SHA1 Message Date
eiixy a3bd2569ac Improve handling of JSON Schema in OpenAI API Response Context (#819)
* feat: add jsonschema.Validate and jsonschema.Unmarshal

* fix Sanity check

* remove slices.Contains

* fix Sanity check

* add SchemaWrapper

* update api_integration_test.go

* update method 'reflectSchema' to support 'omitempty' in JSON tag

* add GenerateSchemaForType

* update json_test.go

* update `Warp` to `Wrap`

* fix Sanity check

* fix Sanity check

* update api_internal_test.go

* update README.md

* update README.md

* remove jsonschema.SchemaWrapper

* remove jsonschema.SchemaWrapper

* fix Sanity check

* optimize code formatting
2024-08-24 18:06:08 +01:00
eiixy dd7f5824f9 fix: fullURL endpoint generation (#817) 2024-08-16 18:11:38 +01:00
eiixy 2c6889e081 fix: #788 (#800) 2024-08-10 22:05:06 +01:00
eiixy 623074c14a feat: Support Structured Outputs (#813)
* feat: Support Structured Outputs

* feat: Support Structured Outputs

* update imports

* add integration test

* update JSON schema comments
2024-08-07 14:47:48 +01:00
eiixy 581da2f12d fix: #804 (#807) 2024-07-28 18:43:45 +01:00
eiixy 92f483055f fix: #794 (#797) 2024-07-19 15:10:17 +01:00
eiixy 3e47e6fef4 fix: #790 (#798) 2024-07-19 15:06:27 +01:00
eiixy 99cc170b54 feat: support batches api (#746)
* feat: support batches api

* update batch_test.go

* fix golangci-lint check

* fix golangci-lint check

* fix tests coverage

* fix tests coverage

* fix tests coverage

* fix tests coverage

* fix tests coverage

* fix tests coverage

* fix tests coverage

* fix: create batch api

* update batch_test.go

* feat: add `CreateBatchWithUploadFile`

* feat: add `UploadBatchFile`

* optimize variable and type naming

* expose `BatchLineItem` interface

* update batches const
2024-06-13 19:24:37 +04:00