12 Commits

Author SHA1 Message Date
VaalaCat
3640274cd1 feat: change repo name 2025-06-15 12:58:45 +00:00
Alex Baranov
030b7cb7ed fix integration tests (#834) 2024-08-24 18:11:27 +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
Grey Baker
d86425a5cf Allow structured outputs via function calling (#828) 2024-08-16 18:41:39 +01:00
Harald Nordgren
1880333381 Run integration tests for PRs (#823)
* Unbreak integration tests

* Update integration-tests.yml
2024-08-09 17:30:32 +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
Adam Smith
fd41f7a5f4 Fix integration test (#762)
* added TestCompletionStream test

moved completion stream testing to seperate function
added NoErrorF
fixes nil pointer reference on stream object

* update integration test models
2024-06-13 17:23:07 +04:00
渡邉祐一 / Yuichi Watanabe
08c167fecf test: fix compile error in api integration test (#548) 2023-11-08 13:21:51 +04:00
Simon Klee
0664105387 lint: fix linter warnings reported by golangci-lint (#522)
- Fix #519
2023-11-07 13:23:06 +04: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
68f9ef92be split integration test using go build tag (#392) 2023-06-19 12:12:38 +04:00
渡邉祐一 / Yuichi Watanabe
b0959382c8 extract and split integration tests (#389) 2023-06-18 14:51:20 +04:00