* fix test server setup:
- go map access is not deterministic
- this can lead to a route: /foo/bar/1 matching /foo/bar before matching /foo/bar/1 if the map iteration go through /foo/bar first since the regex match wasn't bound to start and end anchors
- registering handlers now converts * in routes to .* for proper regex matching
- test server route handling now tries to fully match the handler route
* add missing /v1 prefix to fine-tuning job cancel test server handler
* add create message call
* add messages list call
* add get message call
* add modify message call, fix return types for other message calls
* add message file retrieve call
* add list message files call
* code style fixes
* add test for list messages with pagination options
* add beta header to msg calls now that #545 is merged
* Update messages.go
Co-authored-by: Simone Vellei <henomis@gmail.com>
* Update messages.go
Co-authored-by: Simone Vellei <henomis@gmail.com>
* add missing object details for message, fix tests
* fix merge formatting
* minor style fixes
---------
Co-authored-by: Simone Vellei <henomis@gmail.com>
* feat: implement new fine tuning job API
* fix: export ListFineTuningJobEventsParameter
* fix: lint errors
* fix: test errors
* fix: code test coverage
* fix: code test coverage
* fix: use any
* chore: use url.Values
* refactoring http request creation and sending
* fix lint error
* increase the test coverage of client.go
* refactor: Change the style of HTTPRequestBuilder.Build func to one-argument-per-line.
* Support Retrieve model API (#340)
* Test for GetModel error cases. (#340)
* Reduce the cognitive complexity of TestClientReturnsRequestBuilderErrors (#340)
* maintain underlying error structs to allow for type conversion and
defensive error checking
* allow Error.Is for Azure responses
* update readme, add tests to ensure type conversion
* fix whitespacing
* read me
* add import to readme example
* Add speech to text example in docs
* Add caption formats for audio transcription
* Add caption example to README
* Address sanity check errors
* Add tests for decodeResponse
* Use typechecker for audio response format
* Decoding response refactors