Gemini 4 Neon fails with “no generateContent profile” on the OpenCode provider
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- api
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 5
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của posit-dev/assistant-feedback
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
posit-dev/assistant-feedback#108 · 3 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
posit-dev/assistant-feedback#107 ·
-
rstudio
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Posit Assistant's Posit Cloud Deployment Skill Didn't Seem to Know About manifest.json files?Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
posit-dev/assistant-feedback#156 ·
Tất cả issue của posit-dev/assistant-feedback
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
posit-dev/positron-sas-extension#196 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
test_archive_is_downloaded_after_logout_login doesn't wait for the storage client after loginĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
open-telemetry/opentelemetry-php-distro#176 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 2 ngày