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

Merge upstream #2

Merged
merged 19 commits into from
Nov 1, 2024
Merged

Merge upstream #2

merged 19 commits into from
Nov 1, 2024

Conversation

lasse-it
Copy link

@lasse-it lasse-it commented Nov 1, 2024

No description provided.

WeiAnAn and others added 19 commits September 20, 2024 19:22
* 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]>
@lasse-it lasse-it marked this pull request as ready for review November 1, 2024 13:05
@lasse-it lasse-it requested a review from Rosenberg96 November 1, 2024 13:05
@lasse-it lasse-it merged commit 1e53b97 into lunarway:master Nov 1, 2024
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.