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

Improve Assistants API #742

Merged
merged 3 commits into from
Jan 14, 2024
Merged

Improve Assistants API #742

merged 3 commits into from
Jan 14, 2024

Conversation

jlowin
Copy link
Member

@jlowin jlowin commented Jan 14, 2024

This makes two significant improvements to the Assistants API:

  1. Assistants support lazy lifecycles, meaning it's no longer necessary to use them as context managers. You can create them and say() things to them, or use them with threads at will and lifecycle management happens automatically. Context management is still available to minimize the number of API calls (e.g. for long conversations). See docs for more.
  2. Assistant.say() now returns a list of messages (including the user message) for easy examination.

@jlowin jlowin changed the base branch from main to 2.0 January 14, 2024 21:09
@jlowin jlowin merged commit 84fc5a3 into 2.0 Jan 14, 2024
14 checks passed
@jlowin jlowin deleted the easy-assistants branch January 14, 2024 21:31
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.

1 participant