-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Support new chat API #93
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feat: support chat completion in studio SDK
* feat: support get_tokenizer by tokenizer name * fix: Added deprecation warning to count_tokens in ai21 client * bump: ai21-tokenizer to 0.9.0 * test: Added tests for new tokenizer * fix: model name in tests * fix: test model name for chat * fix: Added kwargs * fix: type * fix: doc * docs: Count Tokens README * fix: tokenizer example --------- Co-authored-by: asafg <asafg@ai21.com>
Bumps [python-semantic-release/python-semantic-release](https://github.com/python-semantic-release/python-semantic-release) from 9.3.0 to 9.3.1. - [Release notes](https://github.com/python-semantic-release/python-semantic-release/releases) - [Changelog](https://github.com/python-semantic-release/python-semantic-release/blob/master/CHANGELOG.md) - [Commits](python-semantic-release/python-semantic-release@v9.3.0...v9.3.1) --- updated-dependencies: - dependency-name: python-semantic-release/python-semantic-release dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump black from 22.12.0 to 24.3.0 Bumps [black](https://github.com/psf/black) from 22.12.0 to 24.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@22.12.0...24.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * refactor: lint fixes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Asaf Gardin <147075902+asafgardin@users.noreply.github.com> Co-authored-by: Asaf Gardin <asafg@ai21.com>
* docs: Added contextual answers examples and shared a link to our examples folder * fix: Fixed main link in our readme * docs: Examples section
* feat: support get_tokenizer by tokenizer name * fix: Added deprecation warning to count_tokens in ai21 client * bump: ai21-tokenizer to 0.9.0 * test: Added tests for new tokenizer * fix: model name in tests * fix: test model name for chat * fix: Added kwargs * fix: type * fix: doc * docs: Count Tokens README * fix: tokenizer example --------- Co-authored-by: asafg <asafg@ai21.com>
* docs: Updated README * refactor: ChatMessage typed dict * refactor: role to be literal * fix: Removed Literal * fix: model ame * fix: tests * fix: typing * fix: module_name * fix: test
* feat: support get_tokenizer by tokenizer name * fix: Added deprecation warning to count_tokens in ai21 client * bump: ai21-tokenizer to 0.9.0 * test: Added tests for new tokenizer * fix: model name in tests * fix: test model name for chat * fix: Added kwargs * fix: type * fix: doc * docs: Count Tokens README * fix: tokenizer example --------- Co-authored-by: asafg <asafg@ai21.com>
* feat: support get_tokenizer by tokenizer name * fix: Added deprecation warning to count_tokens in ai21 client * bump: ai21-tokenizer to 0.9.0 * test: Added tests for new tokenizer * fix: model name in tests * fix: test model name for chat * fix: Added kwargs * fix: type * fix: doc * docs: Count Tokens README * fix: tokenizer example --------- Co-authored-by: asafg <asafg@ai21.com>
* docs: Updated README * refactor: ChatMessage typed dict * refactor: role to be literal * fix: Removed Literal * fix: model ame * fix: tests * fix: typing * fix: module_name * fix: test
* fix: revert completion message to dataclass
Josephasafg
reviewed
Apr 10, 2024
Josephasafg
reviewed
Apr 10, 2024
miri-bar
approved these changes
Apr 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.