Skip to content

add assistant beta header to make it possible to use assistants #16

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 2 commits into from
Jan 15, 2024

Conversation

frithjof
Copy link
Contributor

@frithjof frithjof commented Dec 22, 2023

What:

  • Bug Fix
  • New Feature

Description:

Related:

Copy link
Collaborator

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DylanDelobel
Copy link
Contributor

This would solve #15

@frithjof Could you fix coding style on your PR ? :)

  -        ->call('withHttpHeader', ['OpenAI-Beta' , 'assistants=v1'])
  +        ->call('withHttpHeader', ['OpenAI-Beta', 'assistants=v1'])

@GromNaN GromNaN merged commit 0d0d76e into openai-php:main Jan 15, 2024
@GromNaN
Copy link
Collaborator

GromNaN commented Jan 15, 2024

Thank you @frithjof

@nunomaduro
Copy link
Contributor

@gehrisandro can you confirm this change is ok?

@DylanDelobel
Copy link
Contributor

@nunomaduro Just tried

$result = $client->assistants()->list();
dd($result);

All good 👍

@gehrisandro
Copy link
Collaborator

@nunomaduro Looks good to me.

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.

5 participants