Skip to content

Error in AI streaming response: list index out of range #7330

@CyberQin

Description

@CyberQin

Describe the bug

Generate with AI will stopped and repot Error in AI streaming response: list index out of range.

marimo.version = 0.18.1

openai-compatible provider: https://api.deepseek.com
model:deepseek/deepseek-chat

Image

Will you submit a PR?

  • Yes

Environment

Details
{
  "marimo": "0.18.1",
  "editable": false,
  "location": "C:/Users/hu578/miniconda3/envs/py314/Lib/site-packages/marimo",
  "OS": "Windows",
  "OS Version": "11",
  "Processor": "AMD64 Family 26 Model 68 Stepping 0, AuthenticAMD",
  "Python Version": "3.14.0",
  "Locale": "zh_CN",
  "Binaries": {
    "Browser": "136.0.7103.49",
    "Node": "v22.21.0"
  },
  "Dependencies": {
    "click": "8.3.1",
    "docutils": "0.22.3",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.10",
    "narwhals": "2.12.0",
    "packaging": "25.0",
    "psutil": "7.1.3",
    "pygments": "2.19.2",
    "pymdown-extensions": "10.17.2",
    "pyyaml": "6.0.3",
    "starlette": "0.50.0",
    "tomlkit": "0.13.3",
    "typing-extensions": "4.15.0",
    "uvicorn": "0.38.0",
    "websockets": "15.0.1"
  },
  "Optional Dependencies": {
    "altair": "6.0.0",
    "anywidget": "0.9.21",
    "basedpyright": "1.34.0",
    "duckdb": "1.4.2",
    "mcp": "1.22.0",
    "nbformat": "5.10.4",
    "openai": "2.8.1",
    "pandas": "2.3.3",
    "polars": "1.35.2",
    "pyarrow": "22.0.0",
    "pytest": "9.0.1",
    "python-lsp-ruff": "2.3.0",
    "python-lsp-server": "1.13.2",
    "ruff": "0.14.6",
    "sqlglot": "28.0.0",
    "ty": "0.0.1a25",
    "vegafusion": "2.0.3"
  },
  "Experimental Flags": {
    "external_agents": true,
    "performant_table_charts": true,
    "chat_modes": true
  }
}

Code to reproduce

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions