-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Assistant API Support #264
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
Closed
Closed
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
under `beta`
feat: ✨ add support for Assistant resource
under `beta`
…c_assistant_api_support
feat: ✨ add support for Thread resource
feat: ✨ add support for Message resource
* feat: ✨ add support for Run resource * fix: 🏷️ typing backwards compatability * refactor: 🚚 rename classes & types and such * refactor: 🔥 remove `avatar` option * fix: 🏷️ typing yay * feat: ✨ add examples * fix: 🏷️ make `description` optional * docs: 📝 add assistants info to README also, add examples * test: ✅ add assistants to tests * docs: 📝 update docs about Assistants * docs: 📝 better example * chore: 🚚 move files * docs: 📝 examples fixes --------- Co-authored-by: benshuk <bens@ai21.com>
* feat: ✨ add support for Plan resource * feat: ✨ add support for Route resource * fix: 🏷️ List instead of list * refactor: 🚚 rename classes and files --------- Co-authored-by: benshuk <bens@ai21.com>
EXEC-470 Co-authored-by: benshuk <bens@ai21.com>
* fix: add schemas to assistant plans * fix: support func type in code and class in schemas * fix: add schemas to api call * fix: raise an error on code parsing failed * fix: change types * fix: add tests * fix: adapt code to 3.8 * fix: adapt code to 3.8 * fix: support model schemas of python 3.11 * fix: support model schemas of python 3.11 * fix: PR comments * fix: PR comments * fix: add user defined plan example to integration tests
# Conflicts: # CHANGELOG.md # ai21/version.py # pyproject.toml
* feat: ✨ add support for `str` message content * fix: 🏷️ typing * fix: 🏷️ typing again * fix: 🏷️ typing thingy --------- Co-authored-by: benshuk <bens@ai21.com>
Co-authored-by: benshuk <bens@ai21.com>
* feat: ✨ add support for status polling for `Run` * chore: 🔧 constants * refactor: ♻️ polling implementation * docs: 📝 update assistant examples * refactor: ♻️ rename `poll_interval` and `poll_timeout` to indicate seconds --------- Co-authored-by: benshuk <bens@ai21.com>
* feat: add submit_input method for thread run * fix: change gt to gte operator in poll_for_status * fix: add =None to optionals
Co-authored-by: benshuk <bens@ai21.com>
Co-authored-by: benshuk <bens@ai21.com>
* feat: ✨ support deleting assistant * fix: ♻️ assistant route description should be optional --------- Co-authored-by: benshuk <bens@ai21.com>
chore: ♻️ thread messages should be optional
* fix: 🐛 create thread without messages plz * docs: 📝 update assistant example --------- Co-authored-by: benshuk <bens@ai21.com>
fix: change tool to a dict
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.