client icon indicating copy to clipboard operation
client copied to clipboard

Missing reasoning_effort from assistant

Open odoremieux opened this issue 11 months ago • 1 comments

Now when we retrieve an assistant using curl, there is a new parameter reasoning_effort, here are a couple examples : { "id": "asst_xxxx", "object": "assistant", "created_at": 1725282637, "name": "Assistant 1", "description": null, "model": "o1", "instructions": "You're an assistant.", "tools": [ { "type": "file_search", "file_search": { "ranking_options": { "ranker": "default_2024_08_21", "score_threshold": 0.0 } } } ], "top_p": 1.0, "temperature": 1.0, "reasoning_effort": "medium", "tool_resources": { "file_search": { "vector_store_ids": [ "vs_xxxxx" ] } }, "metadata": {}, "response_format": { "type": "text" } }

{ "id": "asst_xxxx", "object": "assistant", "created_at": 1725282637, "name": "Assistant 1", "description": null, "model": "gpt-4o-mini", "instructions": "You're an assistant.", "tools": [ { "type": "file_search", "file_search": { "ranking_options": { "ranker": "default_2024_08_21", "score_threshold": 0.0 } } } ], "top_p": 1.0, "temperature": 1.0, "reasoning_effort": null, "tool_resources": { "file_search": { "vector_store_ids": [ "vs_xxxxx" ] } }, "metadata": {}, "response_format": { "type": "text" } }

odoremieux avatar Feb 05 '25 07:02 odoremieux

Just formatting your JSON because it may be of use to others

{
    "id": "asst_xxxx",
    "object": "assistant",
    "created_at": 1725282637,
    "name": "Assistant 1",
    "description": null,
    "model": "o1",
    "instructions": "You're an assistant.",
    "tools": [
        {
            "type": "file_search",
            "file_search": {
                "ranking_options": {
                    "ranker": "default_2024_08_21",
                    "score_threshold": 0.0
                }
            }
        }
    ],
    "top_p": 1.0,
    "temperature": 1.0,
    "reasoning_effort": "medium",
    "tool_resources": {
        "file_search": {
            "vector_store_ids": [
                "vs_xxxxx"
            ]
        }
    },
    "metadata": {},
    "response_format": {
        "type": "text"
    }
}
{
    "id": "asst_xxxx",
    "object": "assistant",
    "created_at": 1725282637,
    "name": "Assistant 1",
    "description": null,
    "model": "gpt-4o-mini",
    "instructions": "You're an assistant.",
    "tools": [
        {
            "type": "file_search",
            "file_search": {
                "ranking_options": {
                    "ranker": "default_2024_08_21",
                    "score_threshold": 0.0
                }
            }
        }
    ],
    "top_p": 1.0,
    "temperature": 1.0,
    "reasoning_effort": null,
    "tool_resources": {
        "file_search": {
            "vector_store_ids": [
                "vs_xxxxx"
            ]
        }
    },
    "metadata": {},
    "response_format": {
        "type": "text"
    }
}

vesper8 avatar Mar 06 '25 16:03 vesper8

PR opened - https://github.com/openai-php/client/pull/606 tested here - https://github.com/iBotPeaches/openai-php-laravel-test/blob/master/app/Console/Commands/AssistantReasoningCreate.php

iBotPeaches avatar Jun 17 '25 13:06 iBotPeaches