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

[Bug]: Delete Thread Message Endpoint is now Admin-Only (assistants/threads API) #302

Closed
maximehinnekens opened this issue Dec 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@maximehinnekens
Copy link

Description

The delete thread message endpoint which was not documented yet, is now an admin-only endpoint and will result in an Exception:

OpenAI\Exceptions\ErrorException 

You've made a request to an admin-only URL. If you're an OpenAI employee, please request the necessary permissions. If not, it's our mistake that you're trying to access this URL -- please let us know how you found it at support@openai.com.

Steps To Reproduce

Use this endpoint:

$response = $this->openAI->threads()->messages()->delete(
            threadId: $threadId,
            messageId: $messageId,
        );
    Response will result in an Exception

OpenAI PHP Client Version

v.0.8.0

PHP Version

8.1.2

Notes

No response

@maximehinnekens maximehinnekens added the bug Something isn't working label Dec 21, 2023
@maximehinnekens maximehinnekens changed the title [Bug]: Delete Thread Message Endpoint is now Admin-Only (assistants API) [Bug]: Delete Thread Message Endpoint is now Admin-Only (assistants/threads API) Dec 21, 2023
@gehrisandro
Copy link
Collaborator

Hi @maximehinnekens

Thank you very much.

Fixed here: #309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants