-
Notifications
You must be signed in to change notification settings - Fork 892
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Trying to call Github Copilot default endpoint causes error in prompt return:
data: {"type": "error", "errorText": "status_code: 403, model_name: gpt-4o-mini, body: Access to this endpoint is forbidden. Please review our [Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service)."}
In the Terminal output, it shows as:
[E 260131 11:09:05 ai:90] Error in AI streaming response: status_code: 403, model_name: gpt-4o-mini, body: Access to this endpoint is forbidden. Please review our [Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service).
I have also tested this on an Ubuntu PC. Same issue existed. I have used this feature before, so something has changed. The marimo.toml is very basic. The lines concerning AI assisted coding:
[ai]
inline_tooltip = false
mode = "manual"
rules = ""
[ai.models]
chat_model = "github/gpt-4o-mini"
displayed_models = ["github/gpt-4o-mini", "github/gpt-5-mini"]
edit_model = "github/gpt-4o-mini"
custom_models = ["github/gpt-5", "github/gpt-5-mini"]
[ai.custom_providers]
[ai.github]
api_key = "gho_MASKED"Will you submit a PR?
- Yes
Environment
Details
{
"marimo": "0.19.7",
"editable": false,
"location": "/Users/janisou1/Code/testing-zone/marimo-bug-hunt/.venv/lib/python3.14/site-packages/marimo",
"OS": "Darwin",
"OS Version": "25.2.0",
"Processor": "arm",
"Python Version": "3.14.2",
"Locale": "fi_FI",
"Binaries": {
"Browser": "144.0.7559.110",
"Node": "v25.4.0"
},
"Dependencies": {
"click": "8.3.1",
"docutils": "0.22.4",
"itsdangerous": "2.2.0",
"jedi": "0.19.2",
"markdown": "3.10.1",
"narwhals": "2.15.0",
"packaging": "26.0",
"psutil": "7.2.2",
"pygments": "2.19.2",
"pymdown-extensions": "10.20.1",
"pyyaml": "6.0.3",
"starlette": "0.52.1",
"tomlkit": "0.14.0",
"typing-extensions": "4.15.0",
"uvicorn": "0.40.0",
"websockets": "16.0"
},
"Optional Dependencies": {
"altair": "6.0.0",
"duckdb": "1.4.4",
"nbformat": "5.10.4",
"openai": "2.16.0",
"polars": "1.37.1",
"pyarrow": "23.0.0",
"ruff": "0.14.14",
"sqlglot": "28.7.0"
},
"Experimental Flags": {}
}
Code to reproduce
Steps to reproduce
- Create environment
mkdir marimo-bug-hunt && cd marimo-bug-hunt uv init --bare . uv add "marimo[recommended]" uv marimo run edit
- Import marimo as usual in the first cell.
- Click "Start coding or generate with AI"
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working