litellm - 💡(How to fix) Fix [Bug]: Test ChatGPT in ui dashboard [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#27851Fetched 2026-05-14 03:30:10
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

{ "status": "error", "result": { "use_in_pass_through": false, "use_litellm_proxy": false, "merge_reasoning_content_in_choices": false, "model": "chatgpt/gpt-5.5", "max_tokens": 5, "cache": { "no-cache": true }, "error": "litellm.BadRequestError: ChatgptException - {"detail":"Input must be a list"}\nstack trace: Traceback (most recent call last):\n File "/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/llm_http_handler.py", line 2461, in async_response_api_handler\n response = await async_httpx_client.post(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n )\n ^\n File "/app/.venv/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py", line 297, in async_wrapper\n result = await func(args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py", line 672, in post\n await _raise_masked_async_error(e, stream)\n File "/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py", line 461, in _raise_masked_async_error\n raise MaskedHTTPStatusError(e, message=_text, text=_text) from None\nlitellm.llms.custom_httpx.http_handler.MaskedHTTPStatusError: Client error '400 Bad Request' for url 'https://chatgpt.com/backend-api/codex/r", "raw_request_typed_dict": { "raw_request_api_base": "https://chatgpt.com/backend-api/codex/responses", "raw_request_body": { "model": "gpt-5.5", "input": "test from litellm", "instructions": "<truncated>", "store": false, "stream": true, "include": [ "reasoning.encrypted_content" ] }, "raw_request_headers": { "Authorization": "Be***AQ", "content-type": "application/json", "accept": "text/event-stream", "originator": "codex_cli_rs", "user-agent": "codex_cli_rs/1.85.0 (Linux 5.15.0-176-generic; x86_64) unknown", "session_id": "<truncated>", "ChatGPT-Account-Id": "<truncated>" }, "error": null } } }

Code Example

image:
      repository: ghcr.io/berriai/litellm-database
      tag: "v1.85.0-rc.1"

[...]

    proxy_config:
      model_list:
        - model_name: chatgpt/gpt-5.5
          model_info:
            mode: responses
          litellm_params:
            model: chatgpt/gpt-5.5
      general_settings:

---

{
    "status": "error",
    "result": {
        "use_in_pass_through": false,
        "use_litellm_proxy": false,
        "merge_reasoning_content_in_choices": false,
        "model": "chatgpt/gpt-5.5",
        "max_tokens": 5,
        "cache": {
            "no-cache": true
        },
        "error": "litellm.BadRequestError: ChatgptException - {\"detail\":\"Input must be a list\"}\nstack trace: Traceback (most recent call last):\n File \"/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/llm_http_handler.py\", line 2461, in async_response_api_handler\n response = await async_httpx_client.post(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n )\n ^\n File \"/app/.venv/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py\", line 297, in async_wrapper\n result = await func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py\", line 672, in post\n await _raise_masked_async_error(e, stream)\n File \"/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py\", line 461, in _raise_masked_async_error\n raise MaskedHTTPStatusError(e, message=_text, text=_text) from None\nlitellm.llms.custom_httpx.http_handler.MaskedHTTPStatusError: Client error '400 Bad Request' for url 'https://chatgpt.com/backend-api/codex/r",
        "raw_request_typed_dict": {
            "raw_request_api_base": "https://chatgpt.com/backend-api/codex/responses",
            "raw_request_body": {
                "model": "gpt-5.5",
                "input": "test from litellm",
                "instructions": "<truncated>",
                "store": false,
                "stream": true,
                "include": [
                    "reasoning.encrypted_content"
                ]
            },
            "raw_request_headers": {
                "Authorization": "Be****AQ",
                "content-type": "application/json",
                "accept": "text/event-stream",
                "originator": "codex_cli_rs",
                "user-agent": "codex_cli_rs/1.85.0 (Linux 5.15.0-176-generic; x86_64) unknown",
                "session_id": "<truncated>",
                "ChatGPT-Account-Id": "<truncated>"
            },
            "error": null
        }
    }
}

---
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

I've setup LiteLLM on kubernetes with the following configuration

    image:
      repository: ghcr.io/berriai/litellm-database
      tag: "v1.85.0-rc.1"

[...]

    proxy_config:
      model_list:
        - model_name: chatgpt/gpt-5.5
          model_info:
            mode: responses
          litellm_params:
            model: chatgpt/gpt-5.5
      general_settings:

I checked the logs of LiteLLM and followed the auth process which worked fine, I now have the model in the litellm UI

<img width="2152" height="294" alt="Image" src="https://github.com/user-attachments/assets/9e0c89c3-c415-42fc-81a0-c2c49debd1a1" />

However, if I go in the model and I click on "Test Connection" I get the following error

<img width="954" height="410" alt="Image" src="https://github.com/user-attachments/assets/b1e53977-1c6b-4db0-816f-ada914228411" />

If I check the network tab to see the error I get

{
    "status": "error",
    "result": {
        "use_in_pass_through": false,
        "use_litellm_proxy": false,
        "merge_reasoning_content_in_choices": false,
        "model": "chatgpt/gpt-5.5",
        "max_tokens": 5,
        "cache": {
            "no-cache": true
        },
        "error": "litellm.BadRequestError: ChatgptException - {\"detail\":\"Input must be a list\"}\nstack trace: Traceback (most recent call last):\n File \"/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/llm_http_handler.py\", line 2461, in async_response_api_handler\n response = await async_httpx_client.post(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ...<5 lines>...\n )\n ^\n File \"/app/.venv/lib/python3.13/site-packages/litellm/litellm_core_utils/logging_utils.py\", line 297, in async_wrapper\n result = await func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py\", line 672, in post\n await _raise_masked_async_error(e, stream)\n File \"/app/.venv/lib/python3.13/site-packages/litellm/llms/custom_httpx/http_handler.py\", line 461, in _raise_masked_async_error\n raise MaskedHTTPStatusError(e, message=_text, text=_text) from None\nlitellm.llms.custom_httpx.http_handler.MaskedHTTPStatusError: Client error '400 Bad Request' for url 'https://chatgpt.com/backend-api/codex/r",
        "raw_request_typed_dict": {
            "raw_request_api_base": "https://chatgpt.com/backend-api/codex/responses",
            "raw_request_body": {
                "model": "gpt-5.5",
                "input": "test from litellm",
                "instructions": "<truncated>",
                "store": false,
                "stream": true,
                "include": [
                    "reasoning.encrypted_content"
                ]
            },
            "raw_request_headers": {
                "Authorization": "Be****AQ",
                "content-type": "application/json",
                "accept": "text/event-stream",
                "originator": "codex_cli_rs",
                "user-agent": "codex_cli_rs/1.85.0 (Linux 5.15.0-176-generic; x86_64) unknown",
                "session_id": "<truncated>",
                "ChatGPT-Account-Id": "<truncated>"
            },
            "error": null
        }
    }
}

Not sure if I'm doing something wrong? I barely just started setting up LiteLLM. If I go in the playground and I try /v1/responses it looks to be working fine.

Steps to Reproduce

  1. Add a ChatGPT account
  2. Click on "Test Connection" in the ui

Relevant log output

What part of LiteLLM is this about?

UI Dashboard

What LiteLLM version are you on ?

v1.85.0

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: Test ChatGPT in ui dashboard [1 participants]