Ayush Sawant
b3ece4d32e
Updated client_test to solve lint error ( #900 )
...
* updated client_test to solve lint error
* modified golangci yml to solve linter issues
* minor change
2024-11-19 20:37:10 +00:00
Denny Depok
6d066bb12d
Support Attachments in MessageRequest ( #890 )
...
* add attachments in MessageRequest
* Move tools const to message
* remove const, just use assistanttool const
2024-11-08 13:54:27 +00:00
Matt Davis
f5e6e0e4fe
Added Vector Store File List properties that allow for pagination ( #891 )
2024-11-08 13:53:02 +00:00
genglixia
d10f1b8199
add chatcompletion stream delta refusal and logprobs ( #882 )
...
* add chatcompletion stream refusal and logprobs
* fix slice to struct
* add integration test
* fix lint
* fix lint
* fix: the object should be pointer
---------
Co-authored-by: genglixia <genglixia@enjoypartytime.com >
2024-10-29 07:22:52 +00:00
Ayush Sawant
6e087322b7
Updated checkPromptType function to handle prompt list in completions ( #885 )
...
* updated checkPromptType function to handle prompt list in completions
* removed generated test file
* added corresponding unit testcases
* Updated to use less nesting with early returns
2024-10-25 14:41:45 +01:00
Edin Ćoralić
3672c0dec6
fix: Updated Assistent struct with latest fields based on OpenAI docs ( #883 )
2024-10-21 21:57:02 +01:00
Ayush Sawant
fb15ff9dcd
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
Sander Mack-Crane
9fe2c6ce1f
Completion API: add Store and Metadata parameters ( #878 )
2024-10-15 21:16:57 +01:00
Alex Baranov
b162541513
Cleanup ( #879 )
...
* remove obsolete files
* update readme
2024-10-15 20:09:34 +01:00
Matt Jacobs
21f7134574
Adding new moderation model constants ( #875 )
2024-10-14 14:21:39 +01:00
Ayush Sawant
cfe15ffd00
return response body as byte slice for RequestError type ( #873 )
2024-10-14 14:20:39 +01:00
Isaac Seymour
991326480f
Completion API: add new params ( #870 )
...
* Completion API: add 'store' param
This param allows you to opt a completion request in to being stored,
for use in distillations and evals.
* Add cached and audio tokens to usage structs
These have been added to the completions API recently:
https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage
2024-10-09 10:50:27 +01:00
Julio Martins
7c145ebb4b
add jailbreak filter result, add ContentFilterResults on output ( #864 )
...
* add jailbreak filter result
* add content filter results on completion output
* add profanity content filter
2024-10-03 20:19:48 +01:00
Winston Liu
bac7d59361
fix MaxCompletionTokens typo ( #862 )
...
* fix spelling error
* fix lint
* Update chat.go
* Update chat.go
2024-10-03 20:17:16 +01:00
Liu Shuang
fdd59d9341
feat: usage struct add CompletionTokensDetails ( #863 )
2024-09-26 13:30:56 +03:00
Jialin Tian
e9d8485e90
fix: ParallelToolCalls should be added to RunRequest ( #861 )
2024-09-26 13:26:54 +03:00
Alex Philipp
7f80303cc3
Fix max_completion_tokens ( #860 )
...
The json tag is incorrect, and results in an error from the API when using the o1 model.
I didn't modify the struct field name to maintain compatibility if anyone else had started using it, but it wouldn't work for them either.
2024-09-26 13:26:22 +03:00
eiixy
38bdc812df
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
floodwm
e095df5325
run_id string Optional ( #855 )
...
Filter messages by the run ID that generated them.
Co-authored-by: wappi <support@wappi.pro >
2024-09-20 21:54:25 +01:00
Jialin Tian
9a4f3a7dbf
feat: add ParallelToolCalls to RunRequest ( #847 )
2024-09-20 21:49:28 +01:00
Ivan Timofeev
9add1c3486
add max_completions_tokens for o1 series models ( #857 )
...
* add max_completions_tokens for o1 series models
* add validation for o1 series models validataion + beta limitations
2024-09-20 21:40:24 +01:00
Wei-An Yen
1ec8c24ea7
fix: jsonschema integer validation ( #852 )
2024-09-20 19:22:01 +01:00
Aaron Batilo
a5fb55321b
Support OpenAI reasoning models ( #850 )
...
These model strings are now available for use.
More info:
https://openai.com/index/introducing-openai-o1-preview/
https://platform.openai.com/docs/guides/reasoning
2024-09-17 21:19:47 +01:00
Quest Henkart
194a03e763
Add refusal ( #844 )
...
* add custom marshaller, documentation and isolate tests
* fix linter
* add missing field
2024-09-11 21:24:49 +01:00
Arun Das
643da8d650
depricated model GPT3Ada changed to GPT3Babbage002 ( #843 )
...
* depricated model GPT3Ada changed to GPT3Babbage002
* Delete test.mp3
2024-09-04 12:49:57 +01:00
Tommy Mathisen
c37cf9ab5b
Dynamic model ( #838 )
2024-09-01 16:30:29 +01: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
Alexey Michurin
5162adbbf9
Support http client middlewareing ( #830 )
2024-08-23 11:47:11 +01:00
Yamagami ken-ichi
6d021190f0
feat: Support Delete Message API ( #799 )
...
* feat: Add DeleteMessage function to API client
* fix: linter
nolint : Deprecated method
split function: cognitive complexity 21
* rename func name for unit-test
2024-08-22 15:27:44 +01:00
Grey Baker
d86425a5cf
Allow structured outputs via function calling ( #828 )
2024-08-16 18:41:39 +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
Harald Nordgren
1880333381
Run integration tests for PRs ( #823 )
...
* Unbreak integration tests
* Update integration-tests.yml
2024-08-09 17:30:32 +01:00
Tyler Gannon
6439e1fcc9
Make reponse format JSONSchema optional ( #820 )
2024-08-07 20:40:45 +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
Daniel Chalef
dbe726c59f
Add support for gpt-4o-2024-08-06 ( #812 )
...
* feat: Add GPT-4o Mini model support
* feat: Add GPT-4o-2024-08-06 model support
2024-08-07 11:21:38 +01:00
eiixy
581da2f12d
fix : #804 ( #807 )
2024-07-28 18:43:45 +01:00
VanessaMae23
966ee682b1
Add New Optional Parameters to AssistantRequest Struct ( #795 )
...
* Add more parameters to support Assistant v2
* Add goimports
2024-07-19 15:18:16 +01:00
Janusch Jacoby
a7e9f0e388
add hyperparams ( #793 )
2024-07-19 15:13:02 +01:00
Edin Ćoralić
ae903d7465
fix: Updated ThreadMessage struct with latest fields based on OpenAI docs ( #792 )
...
* fix: Updated ThreadMessage struct with latest fields based on OpenAI docs
* fix: Reverted FileIDs for backward compatibility of v1
2024-07-19 15:12:20 +01:00
eiixy
92f483055f
fix : #794 ( #797 )
2024-07-19 15:10:17 +01:00
Daniel Chalef
27c1c56f0b
feat: Add GPT-4o Mini model support ( #796 )
2024-07-19 15:06:51 +01:00
eiixy
3e47e6fef4
fix : #790 ( #798 )
2024-07-19 15:06:27 +01:00
Luca Giannini
727944c478
feat: ParallelToolCalls to ChatCompletionRequest with helper functions ( #787 )
...
* added ParallelToolCalls to ChatCompletionRequest with helper functions
* added tests for coverage
* changed ParallelToolCalls to any
2024-07-12 11:31:11 +01:00
Adrian Liechti
03851d2032
allow custom voice and speech models ( #691 )
2024-06-30 16:20:10 +01:00
Alex Baranov
e31185974c
remove errors.Join ( #778 )
2024-06-26 14:06:52 +01:00
Peng Guan-Cheng
0a42130899
feat: provide vector store ( #772 )
...
* implement vectore store feature
* fix after integration testing
* fix golint error
* improve test to increare code coverage
* fix golint anc code coverage problem
* add tool_resource in assistant response
* chore: code style
* feat: use pagination param
* feat: use pagination param
* test: use pagination param
* test: rm unused code
---------
Co-authored-by: Denny Depok <61371551+kodernubie@users.noreply.github.com >
Co-authored-by: eric.p <eric.p>
2024-06-19 09:37:21 +01:00
Pawel Kosiec
68acf22a43
Support Tool Resources properties for Threads ( #760 )
...
* Support Tool Resources properties for Threads
* Add Chunking Strategy for Threads vector stores
2024-06-13 19:26:37 +04: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