Skip to content

Conversation

coolbaluk
Copy link

Sync fork

qhenkart and others added 25 commits September 11, 2024 21:24
* add custom marshaller, documentation and isolate tests

* fix linter

* add missing field
* add max_completions_tokens for o1 series models

* add validation for o1 series models validataion + beta limitations
Filter messages by the run ID that generated them.

Co-authored-by: wappi <[email protected]>
* 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
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.
* fix spelling error

* fix lint

* Update chat.go

* Update chat.go
…abaranov#864)

* add jailbreak filter result

* add content filter results on completion output

* add profanity content filter
* 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
* remove obsolete files

* update readme
* removed handling for non-json response

* added response body in RequestError.Error() and updated tests

* done linting
…sashabaranov#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
* 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 <[email protected]>
* add attachments in MessageRequest

* Move tools const to message

* remove const, just use assistanttool const
* updated client_test to solve lint error

* modified golangci yml to solve linter issues

* minor change
@coolbaluk coolbaluk merged commit bb4bf7f into master Nov 20, 2024
2 checks passed
@coolbaluk coolbaluk deleted the sync-master-1120 branch November 20, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.