Gemini 4 Neon fails with “no generateContent profile” on the OpenCode provider
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- api
調査の方向性
Start by locating the Gemini generateContent profile table and the lookup that strips the provider prefix before matching a model id, since the report says google-antigravity/gemini-4-neon is reduced to gemini-4-neon and then misses. Add a Neon profile carrying its thinking-effort levels, then reproduce with the providers.json snippet against a Gemini-compatible gateway. Done means a High request reaches streamGenerateContent and a regression test covers the provider-prefixed id; treat the reported xhigh validator rejection as a separate open question, not part of the first fix.
索引モデルが issue の本文から書いたものです。
説明
Summary
Posit Assistant 1.13.0 lists a custom Gemini 4 Neon model under the OpenCode provider, but sending a message fails before the request reaches the configured Gemini-compatible endpoint.
Environment
- Positron 2026.12.0 build 157, macOS arm64
- Posit Assistant 1.13.0
- Built-in OpenCode provider with a custom base URL pointing to an OpenCodex gateway exposing the Gemini generateContent API
Steps to reproduce
- Configure the OpenCode provider with a working Gemini-compatible gateway and the following sanitized providers.json settings.
- Select Gemini 4 Neon and set thinking effort to High.
- Send a short message such as "hi".
{
"providers": {
"opencode": {
"baseUrl": "http://127.0.0.1:7861/v1beta/models",
"protocol": "google-generative",
"models": {
"custom": [
{
"id": "google-antigravity/gemini-4-neon",
"name": "Gemini 4 Neon",
"protocol": "google-generative",
"thinkingEffortLevels": ["medium", "high", "xhigh"]
}
]
}
}
}
}
Actual behavior
Gemini generateContent routing requires a known model variant; no generateContent profile for model "google-antigravity/gemini-4-neon"
Sending a direct request to the same gateway for the same model returns HTTP 200 and a complete SSE response.
Expected behavior
Posit Assistant should send the Gemini streamGenerateContent request with the selected thinking level. Could you add an official gemini-4-neon generateContent profile and cover the provider-prefixed model ID in a regression test?
Additional findings
In the installed 1.13.0 build, the profile lookup strips the provider prefix, then finds no entry for gemini-4-neon. Adding a Neon profile locally let the extension's client send a High request. The gateway returned HTTP 200 and chat worked after reloading Positron.
XHigh has a separate validation issue. The bundled Gemini SDK's thinkingLevel validator accepts minimal, low, medium, and high. A direct gateway request carrying thinkingLevel: "xhigh" also returned HTTP 200 and reported thought tokens. If XHigh is exposed for Neon, please check that the selected value reaches an endpoint that supports it.
- 主要言語
- 言語のデータがありません
- スター
- 5
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
posit-dev/assistant-feedback のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
posit-dev/assistant-feedback#108 · リアクション 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
posit-dev/assistant-feedback#107 ·
-
rstudio
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
posit-dev/assistant-feedback#156 ·
posit-dev/assistant-feedback の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
posit-dev/positron-sas-extension#196 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
open-telemetry/opentelemetry-php-distro#176 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 2 日以内に返信