Commit Graph

8 Commits

Author SHA1 Message Date
JT A.
ff9d83a485 skip json field (#1009)
* skip json field

* backfill some coverage and tests
2025-05-29 11:31:35 +01:00
JT A.
e99eb54c9d add enum tag to jsonschema (#962)
* fix jsonschema tests

* ensure all run during PR Github Action

* add test for struct to schema

* add support for enum tag

* support nullable tag
2025-04-13 19:00:48 +01:00
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
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
渡邉祐一 / Yuichi Watanabe
c3b2451f7c fix: invalid schema for function 'func_name': None is not of type 'object' (#429)(#432) (#434)
* fix: invalid schema for function 'func_name': None is not of type 'object' (#429)(#432)

* test: add integration test for function call (#429)(#432)

* style: remove duplicate import (#429)(#432)
2023-07-11 14:48:15 +03:00
渡邉祐一 / Yuichi Watanabe
f028c289d2 fix: function call error due to nil properties (429) (#431)
* fix: fix function call error due to nil properties (429)

* refactor: refactoring initializeProperties func in jsonschema pkg (429)
2023-07-09 20:07:01 +03:00
Rick
177c143be7 Fix OpenAI error when properties is empty in function call : object schema missing properties (#419)
Co-authored-by: Rick <medivhzhan@icloud.com>
2023-07-01 07:38:22 +09:00
James MacWhyte
0ca4ea4867 move json schema to directory/package (#407)
* move json schema to directory/package

* added jsonschema to README
2023-06-24 20:22:11 +04:00