Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from sashabaranov:master #40

Open
wants to merge 39 commits into
base: master
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 21, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Aug 21, 2024
kappa-lab and others added 27 commits August 22, 2024 15:27
* feat: Add DeleteMessage function to API client

* fix: linter

nolint : Deprecated method
split function: cognitive complexity 21

* rename func name for unit-test
* 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
* depricated model GPT3Ada changed to GPT3Babbage002

* Delete test.mp3
* 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
* 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
…#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]>
MattDavisRV and others added 10 commits November 8, 2024 13:53
* 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
* make user optional in embedding request

* fix unit test
The ID field is not always present for streaming responses. Without omitempty, the entire ToolCall struct will be missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.