Skip to content

[Bug]: Responses API needs a Resoning status not null #16824

@rodriciru

Description

@rodriciru

What happened?

A bug happened!
The output of litellm in responses API shows for example this JSON:

{
    "id": "resp_YU5J85ie8epCHNhDz1Gto1-Mo7pV4n1NywZr55ToJZiDASVqeETyB8Qv7nAlF3XNmm3qbLC0RLtiYQqyOT76LzPw-V5kq5RemYxoVj_o9gxPB5HXRPTe_2cXqdqgP_GAEj6T3A4k9pJbsPRPjkneRGAgKm-H_zEsXJMu8ShK5-KcmrPK2g_rFLL2VpGCTWrN_pucn0cc2qas6aAhvm1fErpBEnZUwfa-s1n6coJUdfoGuaA8RMIqJGfJ4LglGzRJn6TUpK-lUtLxP2_YXWu8HaNJSW1nc8J2aKmEdl7aBnev14fzUeck3_FJKbRgJuiqRiEl0glmDWCHJAj3Fcqrqu63yvGCPEB6_VhkXTOO1LSk2yujOCZK3K_KXiYo0GqhGmwN0f1R2gucSld8mNrBRYz-gDSyqR0O1aHCM1EljHEoMwBjDciH6Ng9WXQ-gyH-H4GjfRsR10e0nAOZ-RfCMiQl",
    "created_at": 1763559789,
    "error": null,
    "incomplete_details": null,
    "instructions": null,
    "metadata": {},
    "model": "gpt-5-mini-2025-08-07",
    "object": "response",
    "output": [
        {
            "id": "rs_00e1e4e99fe6806f00691dc96e266481949d50e6df0a09b51f",
            "summary": [],
            "type": "reasoning",
            "content": null,
            "encrypted_content": null,
            "status": null
        },
        {
            "id": "msg_00e1e4e99fe6806f00691dc97344f88194b2369d9a6ad3678d",
            "content": [
                {
                    "annotations": [],
                    "text": "\"AI\" (artificial intelligence) refers to computer systems that perform tasks which normally require human intelligence.",
                    "type": "output_text",
                    "logprobs": []
                }
            ],
            "role": "assistant",
            "status": "completed",
            "type": "message"
        }
    ],
    "parallel_tool_calls": true,
    "temperature": 1.0,
    "tool_choice": "auto",
    "tools": [],
    "top_p": 1.0,
    "max_output_tokens": null,
    "previous_response_id": null,
    "reasoning": {
        "effort": "medium",
        "summary": null
    },
    "status": "completed",
    "text": {
        "format": {
            "type": "text"
        },
        "verbosity": "medium"
    },
    "truncation": "disabled",
    "usage": {
        "input_tokens": 10,
        "input_tokens_details": {
            "audio_tokens": null,
            "cached_tokens": 0,
            "text_tokens": null
        },
        "output_tokens": 1158,
        "output_tokens_details": {
            "reasoning_tokens": 320,
            "text_tokens": null
        },
        "total_tokens": 1168,
        "cost": null
    },
    "user": null,
    "store": true,
    "background": false,
    "billing": {
        "payer": "developer"
    },
    "max_tool_calls": null,
    "prompt_cache_key": null,
    "prompt_cache_retention": null,
    "safety_identifier": null,
    "service_tier": "default",
    "top_logprobs": 0
}

Output (of type reasoning) -> status is null. It can't be. It must be one of in_progress, completed, or incomplete

So, when I try to use litellm endpoint in my c# code with the official SDK package, it breaks:
Unknown ReasoningStatus value. (Parameter 'value')

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

1.79.3

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions