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

Support for OpenAI-Beta assistants v2 and streaming. #141

Merged
merged 3 commits into from
May 29, 2024

Conversation

thomasdv
Copy link

Ability to set OpenAI assistants beta header:

  • v1 is still supported by OpenAI, so it is kept as default (no BC break)
  • version can be set by calling ->setAssistantsBetaVersion("v2")

Stream option is added to the following methods:

  • createRun($threadId, $data, $stream = null)
  • submitToolOutputs($threadId, $runId, $outputs, $stream = null)
  • stream callback usage is the same as with chat() method

@orhanerday orhanerday merged commit d8c78fe into orhanerday:main May 29, 2024
1 check passed
@itscvenk
Copy link

itscvenk commented May 30, 2024

Hello

Thanks for this nice update (V2)

Are any other changes happening? When can i get the latest when i install from composer please?

Thanks

@orhanerday
Copy link
Owner

orhanerday commented May 30, 2024 via email

@itscvenk
Copy link

Thank you! Love you! Keep up the great work

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.

4 participants