Skip to content

[Bug]: Issue switching model for an assistant #518

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

Open
odoremieux opened this issue Feb 4, 2025 · 1 comment
Open

[Bug]: Issue switching model for an assistant #518

odoremieux opened this issue Feb 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@odoremieux
Copy link

odoremieux commented Feb 4, 2025

Description

When we switch model from a non reasoning (gpt-4o-mini) to a reasoning model (o1), it throw an exception Unsupported parameter: 'temperature', even so temperature is not part of the array we give to client->assistants()->modify . Without deleting the assistant, is there a workaround?

Steps To Reproduce

Switch the model for an existing assistant between non reasoning (gpt-4o-mini) to a reasoning model (o1)

OpenAI PHP Client Version

v0.10.3

PHP Version

8.1.31

Notes

No response

@odoremieux odoremieux added the bug Something isn't working label Feb 4, 2025
@iBotPeaches
Copy link
Collaborator

I couldn't replicate this. I started with an assistant and changed it back n forth. I quickly learned I had to send the valid reasoning_effort of null or non-null depending if a reasoning model. However, it worked once I did that as I went back n forth.

        $result = $client->assistants()->modify("asst_xxx", [
            'model' => 'gpt-4o-mini',
            'reasoning_effort' => null,
        ]);

        // changing back
        $result = $client->assistants()->modify("asst_6xxx", [
            'model' => 'o1',
            'reasoning_effort' => 'low'
        ]);

Able to give me a little sample that still replicates an issue?

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