Ayush Sawant and GitHub
1900d04ea5
Handling for non-json response ( #881 )
...
* removed handling for non-json response
* added response body in RequestError.Error() and updated tests
* done linting
2024-10-21 21:49:34 +01:00
Ayush Sawant and GitHub
92c038c2a8
return response body as byte slice for RequestError type ( #873 )
2024-10-14 14:20:39 +01:00
eiixy and GitHub
132ca1057d
Optimize Client Error Return ( #856 )
...
* update client error return
* update client_test.go
* update client_test.go
* update file_api_test.go
* update client_test.go
* update client_test.go
2024-09-26 13:25:56 +03:00
eiixy and GitHub
f995e58adf
fix: fullURL endpoint generation ( #817 )
2024-08-16 18:11:38 +01:00
eiixy and GitHub
ee8b6e7775
fix : #794 ( #797 )
2024-07-19 15:10:17 +01:00
ando-masaki and GitHub
73bede755b
Update client.go to get response header whether there is an error or not. ( #751 )
...
Update client.go to get response header whether there is an error or not. Because 429 Too Many Requests error response has "Retry-After" header.
2024-05-24 11:18:47 +04:00
decf1e92d6
feat: support cloudflare AI Gateway flavored azure openai ( #715 )
...
* feat: support cloudflare AI Gateway flavored azure openai
Signed-off-by: STRRL <[email protected] >
* test: add test for cloudflare azure fullURL
---------
Signed-off-by: STRRL <[email protected] >
Co-authored-by: STRRL <[email protected] >
2024-04-24 16:08:58 +04:00
Danai Antoniou and GitHub
8cf9e5e57a
Remove hardcoded assistants version ( #719 )
2024-04-24 15:59:50 +04:00
Qiying Wang and GitHub
32bb15f305
feat: get header from sendRequestRaw ( #694 )
...
* feat: get header from sendRequestRaw
* Fix ci lint
2024-04-05 23:15:54 +04:00
Rich Coggins and GitHub
714462765e
Fix for broken Azure Threads url ( #668 )
2024-02-26 12:46:35 +04:00
Rich Coggins and GitHub
216a4c7259
Fix for broken Azure Assistants url ( #665 )
...
* fix:fix url for Azure assistants api
* test:add unit tests for Azure Assistants api
* fix:minor liniting issue
2024-02-21 16:45:15 +04:00
Igor Berlenko and GitHub
16891b5c16
Update client.go - allow to skip Authorization header ( #658 )
...
* Update client.go - allow to skip Authorization header
* Update client.go
2024-02-16 14:22:38 +04:00
08db6e32f1
Content-type fix ( #659 )
...
* charset fixes
* make linter happy (#661 )
---------
Co-authored-by: grulex <[email protected] >
Co-authored-by: Alexander Baranov <[email protected] >
2024-02-15 20:11:58 +04:00
Qiying Wang and GitHub
ac7168c5b2
fix(audio): fix audioTextResponse decode ( #638 )
...
* fix(audio): fix audioTextResponse decode
* test(audio): add audioTextResponse decode test
* test(audio): simplify code
2024-01-17 21:42:07 +04:00
Simone Vellei and GitHub
3654938682
Fix Refactor assistant api ( #545 )
...
* fix: refactor assistant API
* fix
* trigger build
* fix: use AssistantDeleteResponse
2023-11-08 13:20:20 +04:00
Liu Shuang and GitHub
4ab0eb933b
Support get http header and x-ratelimit-* headers ( #507 )
...
* feat: add headers to http response
* feat: support rate limit headers
* fix: go lint
* fix: test coverage
* refactor streamReader
* refactor streamReader
* refactor: NewRateLimitHeaders to newRateLimitHeaders
* refactor: RateLimitHeaders Resets filed
* refactor: move RateLimitHeaders struct
2023-10-10 19:29:41 +04:00
Simone Vellei and GitHub
d9b13d824f
Feat Add headers to openai responses ( #506 )
...
* feat: add headers to http response
* chore: add test
* fix: rename to httpHeader
2023-10-09 19:41:54 +04:00
渡邉祐一 / Yuichi Watanabe and GitHub
ab2e98f1ed
refactor: refactoring http request creation and sending ( #395 )
...
* 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.
2023-06-22 13:57:52 +04:00
渡邉祐一 / Yuichi Watanabe and GitHub
ba4a0176df
Support Retrieve file content API ( #347 ) ( #348 )
...
* Support Retrieve file content API (#347 )
* add timeout test for GetFileContent (#347 )
2023-06-11 12:49:57 +04:00
渡邉祐一 / Yuichi Watanabe and GitHub
50178dc67e
move request_builder into internal pkg ( #304 ) ( #329 )
...
* move request_builder into internal pkg (#304 )
* add some test for internal.RequestBuilder
* add a test for openai.GetEngine
2023-05-31 12:01:42 +04:00
0ba7ec371b
Move form_builder into internal pkg. ( #311 )
...
* Move form_uilder into internal pkg.
* Fix import of audio.go
* Reorganize.
* Fix import.
* Fix
---------
Co-authored-by: JoyShi <[email protected] >
2023-05-16 13:38:09 -07:00
GargantuaX and GitHub
6f9196510a
change azure engine config to modelMapper ( #306 )
...
* change azure engine config to azure modelMapper config
* Update go.mod
* Revert "Update go.mod"
This reverts commit 78d14c58f2a9ce668da43f6adbe20b60afcfe0d7.
* lint fix
* add test
* lint fix
* lint fix
* lint fix
* opt
* opt
* opt
* opt
2023-05-11 01:30:24 +04:00
Quest Henkart and GitHub
8f1406bb64
maintain underlying error structs to allow for type conversion ( #293 )
...
* 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
2023-05-03 22:48:59 +04:00
Juan and GitHub
458f477f70
Azure openai list models ( #290 )
...
* feat(models): include flow for azure openai endpoint
* feat(models): include flow for azure openai endpoint
* feat(models): include flow for azure openai endpoint
* chore(fullURL): update logic to run in fullURL function
* chore(fullURL): update based on pr comments to use c.config.APIVersion
2023-05-03 13:02:35 +04:00
aafadc17b0
Fix OpenAI or Azure returns an undefined error message return ( #283 )
...
* Fix OpenAI or Azure returns an undefined error message return
* Fix: OpenAI or Azure returns an undefined error message return
#280
* Fix: OpenAI or Azure returns an undefined error message return
#280
* Fix: OpenAI or Azure returns an undefined error message return
#280
Handle long line
* Fix: OpenAI or Azure returns an undefined error message return
#280
Add unit test ErrorResponse nil pointer check
* Fix: OpenAI or Azure returns an undefined error message return
#280
Add unit test ErrorResponse nil pointer check
---------
Co-authored-by: zhangxm <[email protected] >
2023-05-01 01:21:15 +04:00
23aca72932
Fixing missing OrgId assignment issue in the ChatCompletionStream ( #268 )
...
* Update client.go
* Add test
---------
Co-authored-by: panjiajia <[email protected] >
2023-04-20 14:08:29 +01:00
Hoani Bryson and GitHub
7e90563ebd
Adds support for audio captioning with Whisper ( #267 )
...
* 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
2023-04-20 14:07:04 +01:00
Liu Shuang and GitHub
74bbe63cb7
fix: chat stream resp error ( #259 )
2023-04-19 13:05:00 +01:00
sashabaranov and GitHub
ce65985195
Add form builder ( #235 )
...
* add form builder
* cover VariImage
* test for closing errors
* simplify tests
* add audio api test coverage
* don't leak authToken when printed
* rename api->client
* fix test
2023-04-08 19:26:26 +04:00