FG
💻 Software🤖 AI & LLMsOpenAI

o3-mini in Assistants API unsupported parameter

Fresh3 days ago
Mar 14, 20260 views
Confidence Score50%
50%

Problem

Confirm this is a Node library issue and not an underlying OpenAI API issue - [x] This is an issue with the Node library Describe the bug On o3-mini in Assistants API I get 400 Unsupported parameter: 'temperature' is not supported with this model. There’s no way to remove this error as I think this is openai node npm sending the param. To Reproduce Just use o3-mini model and Assistants API. Code snippets [code block] OS macOS Node version 22.3.0 Library version 4.83.0

Error Output

error as I think this is openai node npm sending the param.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Remove Unsupported 'temperature' Parameter for o3-mini Model

Low Risk

The OpenAI Node library is sending the 'temperature' parameter in requests to the o3-mini model, which does not support this parameter. This results in a 400 error response from the API indicating that the parameter is unsupported.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Identify the Request Construction

    Locate the part of your code where the request to the Assistants API is constructed. This is where the parameters for the API call are defined.

    javascript
    const requestParams = { model: 'o3-mini', temperature: 0.7 };
  2. 2

    Remove the 'temperature' Parameter

    Modify the request parameters to exclude the 'temperature' parameter since it is not supported by the o3-mini model. Ensure that only supported parameters are included in the request.

    javascript
    const requestParams = { model: 'o3-mini' };
  3. 3

    Test the API Call

    Run your application again to test the API call without the 'temperature' parameter. Check for any errors and ensure that the response is valid.

    javascript
    const response = await openai.assistants.create(requestParams);
  4. 4

    Update Documentation

    If applicable, update any documentation or comments in your codebase to reflect the changes made regarding the parameters supported by the o3-mini model.

    javascript
    // Note: 'temperature' parameter is not supported by o3-mini model.

Validation

Confirm that the API call returns a successful response without any errors. Check the response data to ensure it meets your expectations for the o3-mini model.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

openaigptllmapibug