Skip to content

feat(web): offer the openai-compatible quality provider in the dashboard - #2028

Merged
doobidoo merged 3 commits into
doobidoo:mainfrom
KshitijKasodkar:feat/dashboard-openai-compatible-provider
Nov 16, 2026
Merged

doobidoo merged 3 commits into
doobidoo:mainfrom
KshitijKasodkar:feat/dashboard-openai-compatible-provider

Conversation

@KshitijKasodkar

@KshitijKasodkar KshitijKasodkar commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

  • web/api/configuration.py: MCP_QUALITY_AI_PROVIDER choices are now local, openai-compatible, groq, auto, none (gemini dropped, as decided in Dashboard: quality provider settings lack openai-compatible and its base URL/model/key #1668), with matching help text. MCP_QUALITY_AI_BASE_URL and MCP_QUALITY_AI_MODEL are listed as plain strings and MCP_QUALITY_AI_API_KEY as a secret (masked like MCP_MILVUS_TOKEN), each with a description.
  • web/static/index.html: the #quality-provider select offers OpenAI-compatible instead of Gemini. The settings.quality.provider.gemini key is replaced by settings.quality.provider.openaiCompatible in all 11 catalogs under web/static/i18n/ (the issue says seven; there are eleven now).
  • One addition beyond the revised scope: since fix(web): save the dashboard's Quality tab settings (#1671) #1676 the Quality tab can save the provider, so picking OpenAI-compatible and pressing Save & Restart without a base URL and model would restart into a server that fails QualityConfig.validate(). QUALITY_PROVIDER_REQUIREMENTS now lists MCP_QUALITY_AI_BASE_URL and MCP_QUALITY_AI_MODEL for openai-compatible, the same way groq needs GROQ_API_KEY. The now-unreachable gemini entry is removed, and a stale app.js comment that named openai-compatible as unsupported is updated.

Why

Closes #1668

How it was verified

# on main (git checkout main -- src): must fail
pytest tests/web/api/test_config_env_issue1668.py -q
6 failed

# on this branch: must pass
pytest tests/web/api/test_config_env_issue1668.py -q
6 passed

pytest tests/web -q
809 passed

The tests call the real get_env_configuration and the real /api/config/quality route (as test_quality_settings_issue1671.py does): choices, help text, the three new settings, the masked key, the dropdown in index.html, and save refused / accepted for openai-compatible.

Browser check (local dashboard with MCP_QUALITY_AI_PROVIDER=openai-compatible and the three variables set):

Screenshots

  1. Quality tab: the provider select offers OpenAI-compatible API, and Gemini is gone.
image
  1. Environment tab: the three new settings are listed, and the API key is marked Sensitive and hidden.
image

I did not run scripts/pr/pre_pr_check.sh.

Changelog fragment

changelog.d/1668.added.md

Agent Disclosure

This PR was prepared with Claude Opus 5.5. The submitting account is operated by Kshitij Kasodkar.
Human review of this PR: yes, I read the full diff, ran the tests and checked the dashboard in a browser myself.

RetriggerView in GreptileConfidence Score: 5/5

The reviewed changes appear safe to merge.

Summary

The dashboard now offers openai-compatible instead of Gemini.

  • The Quality tab offers OpenAI-compatible scoring instead of Gemini.
  • Saving OpenAI-compatible requires its URL and model to be set.

No actionable code issues were found. Tests were not run during this review. KshitijKasodkar reports passing web tests but did not run the required pre-PR check.

Reviews (2) · Last reviewed commit: "Merge branch 'main' into feat/dashboard-..." · Reviewed by Greptile

The Quality tab select and the config API listed local, groq, gemini,
auto and none. openai-compatible was missing, and so were the three
variables it needs. Add the provider and MCP_QUALITY_AI_BASE_URL,
MCP_QUALITY_AI_MODEL and MCP_QUALITY_AI_API_KEY (masked), drop gemini
while _score_with_gemini raises NotImplementedError, and refuse to save
openai-compatible from the Quality tab until base URL and model are set.

Closes doobidoo#1668
@doobidoo
doobidoo enabled auto-merge (squash) November 16, 2026 06:38
@doobidoo
doobidoo merged commit 362b088 into doobidoo:main Nov 16, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants