You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboard: quality provider settings lack openai-compatible and its base URL/model/key #1668
The quality scorer has supported MCP_QUALITY_AI_PROVIDER=openai-compatible since #788. That provider is what lets the scorer use Ollama, vLLM, MLX-LM, LiteLLM, or Apple's fm serve (#1666). The dashboard cannot select it, and it cannot configure it either.
Three places offer local, groq, gemini, auto, none and leave openai-compatible out:
web/static/index.html: the #quality-provider select in the settings modal
web/api/configuration.py: the MCP_QUALITY_AI_PROVIDER choice list in the quality section
web/api/configuration.py: the help text for MCP_QUALITY_AI_PROVIDER
The three variables that provider needs, MCP_QUALITY_AI_BASE_URL, MCP_QUALITY_AI_MODEL and MCP_QUALITY_AI_API_KEY, appear nowhere in the configuration API or the dashboard. Adding the option alone would therefore let someone pick a provider they cannot finish configuring. Config validation raises when base URL or model is missing.
A related point: the select offers gemini, but _score_with_gemini raises NotImplementedError in quality/ai_evaluator.py. Whether to hide that option until it works is worth deciding in the same change.
Done when:
openai-compatible is selectable in the dashboard and in the configuration API choice list.
Base URL, model and API key can be set there. The API key is treated as a secret, like MCP_MILVUS_TOKEN.
The help text names all providers.
The dashboard change is checked in a browser, since web/static/ has no JS tests.
Two corrections to the description above, and one decision.
The dashboard does not edit these settings anywhere.GET /api/config/env is read-only: it lists each variable with its current value and the allowed choices. The #quality-provider select in the settings modal is not wired up. No code in app.js reads or saves it. So "can be set there" in the done list is wrong. The real gap is that the listing and the select both leave out the openai-compatible provider and its three variables.
Decision: hide Gemini until _score_with_gemini is implemented. Today it raises NotImplementedError, so offering it only produces a silent fallback.
Revised scope:
web/api/configuration.py:
Change the MCP_QUALITY_AI_PROVIDER choices to local, openai-compatible, groq, auto, none. Drop gemini.
Update the matching help text.
Add MCP_QUALITY_AI_BASE_URL and MCP_QUALITY_AI_MODEL as plain strings.
Add MCP_QUALITY_AI_API_KEY as a secret, flagged True like MCP_MILVUS_TOKEN.
Give all three a description.
web/static/index.html: remove the gemini option from #quality-provider and add openai-compatible. The label needs an i18n key in all seven files under web/static/i18n/. The settings.quality.provider.gemini keys can go.
A unit test that calls get_env_configuration (or checks the quality section) and asserts the choices and the secret flag on the API key.
Check in a browser that the settings modal and the environment listing look right, and attach a screenshot. web/static/ has no JS tests.
Out of scope: making the select actually save the provider. That needs a write endpoint and the restart flow, and belongs in its own issue.
I'd like to work on this following the revised scope: update the read-only provider listing and its three settings, keep the API key marked sensitive, replace Gemini with OpenAI-compatible in the select and all seven translations, and verify the real configuration path plus the dashboard in a browser. I won't add saving behavior.
I'm using OpenAI Codex to prepare and test the contribution, and will disclose the agent involvement and actual human-review status in the PR.
Could you assign this issue to Ash1-gif? I'll wait for maintainer confirmation before changing the code, as CONTRIBUTING.md requests.
@Ash1-gif are you still working on this? It has been quiet here since 2026-10-24. If you need more time, a short note is enough and the clock resets. Without an answer in 2 days I'll remove the assignment so someone else can pick it up.
@doobidoo I would like to take this if @Ash1-gif has stepped away (no reply since your Nov 8 check-in).
Plan, following your revised scope: add openai-compatible and the three MCP_QUALITY_AI_* settings to configuration.py (API key flagged as secret, help text naming all providers), swap Gemini for OpenAI-compatible in index.html with keys in all seven i18n files, add a unit test for the choices and the secret flag, and attach a browser screenshot of the modal. Saving from the dashboard stays out of scope.
Activity
doobidoo commentedon Oct 24, 2026
Two corrections to the description above, and one decision.
The dashboard does not edit these settings anywhere.
GET /api/config/envis read-only: it lists each variable with its current value and the allowed choices. The#quality-providerselect in the settings modal is not wired up. No code inapp.jsreads or saves it. So "can be set there" in the done list is wrong. The real gap is that the listing and the select both leave out the openai-compatible provider and its three variables.Decision: hide Gemini until
_score_with_geminiis implemented. Today it raisesNotImplementedError, so offering it only produces a silent fallback.Revised scope:
web/api/configuration.py:MCP_QUALITY_AI_PROVIDERchoices tolocal, openai-compatible, groq, auto, none. Dropgemini.MCP_QUALITY_AI_BASE_URLandMCP_QUALITY_AI_MODELas plain strings.MCP_QUALITY_AI_API_KEYas a secret, flaggedTruelikeMCP_MILVUS_TOKEN.web/static/index.html: remove thegeminioption from#quality-providerand addopenai-compatible. The label needs an i18n key in all seven files underweb/static/i18n/. Thesettings.quality.provider.geminikeys can go.get_env_configuration(or checks thequalitysection) and asserts the choices and the secret flag on the API key.web/static/has no JS tests.Out of scope: making the select actually save the provider. That needs a write endpoint and the restart flow, and belongs in its own issue.
Ash1-gif commentedon Oct 24, 2026
I'd like to work on this following the revised scope: update the read-only provider listing and its three settings, keep the API key marked sensitive, replace Gemini with OpenAI-compatible in the select and all seven translations, and verify the real configuration path plus the dashboard in a browser. I won't add saving behavior.
I'm using OpenAI Codex to prepare and test the contribution, and will disclose the agent involvement and actual human-review status in the PR.
Could you assign this issue to Ash1-gif? I'll wait for maintainer confirmation before changing the code, as CONTRIBUTING.md requests.
doobidoo commentedon Oct 24, 2026
@Ash1-gif you are welcome to work on this.
doobidoo commentedon Nov 8, 2026
@Ash1-gif are you still working on this? It has been quiet here since 2026-10-24. If you need more time, a short note is enough and the clock resets. Without an answer in 2 days I'll remove the assignment so someone else can pick it up.
KshitijKasodkar commentedon Nov 15, 2026
@doobidoo I would like to take this if @Ash1-gif has stepped away (no reply since your Nov 8 check-in).
Plan, following your revised scope: add openai-compatible and the three MCP_QUALITY_AI_* settings to configuration.py (API key flagged as secret, help text naming all providers), swap Gemini for OpenAI-compatible in index.html with keys in all seven i18n files, add a unit test for the choices and the secret flag, and attach a browser screenshot of the modal. Saving from the dashboard stays out of scope.
doobidoo commentedon Nov 15, 2026
@KshitijKasodkar thanks for taking this.
ci(claims): label takeover requests, and read a conditional claim as …
feat(web): offer the openai-compatible quality provider in the dashbo…