Skip to content

Dashboard: quality provider settings lack openai-compatible and its base URL/model/key #1668

Closed

Description

@doobidoo

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.

Activity

  1. added
    enhancement
    on Oct 24, 2026
  2. doobidoo commented on Oct 24, 2026

    @doobidoo
    OwnerAuthor

    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:

    1. 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.
    2. 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.
    3. 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.
    4. 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.

  3. Ash1-gif commented on Oct 24, 2026

    @Ash1-gif

    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.

  4. doobidoo commented on Oct 24, 2026

    @doobidoo
    OwnerAuthor

    @Ash1-gif you are welcome to work on this.

  5. doobidoo commented on Nov 8, 2026

    @doobidoo
    OwnerAuthor

    @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.

  6. KshitijKasodkar commented on Nov 15, 2026

    @KshitijKasodkar
    Contributor

    @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.

  7. doobidoo commented on Nov 15, 2026

    @doobidoo
    OwnerAuthor

    @KshitijKasodkar thanks for taking this.

  8. added a commit that references this issue on Nov 16, 2026
    362b088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions