Skip to content

Add model_discovery backend option to disable /v1/models probing - #59

Merged
JaredHatfield merged 1 commit into
mainfrom
feat/model-discovery-config
Aug 18, 2026
Merged

Add model_discovery backend option to disable /v1/models probing#59
JaredHatfield merged 1 commit into
mainfrom
feat/model-discovery-config

Conversation

@JaredHatfield

Copy link
Copy Markdown
Member

Summary

Adds a per-backend model_discovery config option (defaults to true) so backends that do not expose an OpenAI-compatible /v1/models endpoint — such as GCP Vertex AI — can opt out of model discovery.

Changes

  • config: new model_discovery field on backends with a ModelDiscoveryEnabled() helper (nil/absent = enabled)
  • proxy: DiscoverModels skips disabled backends (no upstream request) and marks the result Skipped; upstream HTTP failures now report the standard status text instead of a truncated response body
  • ui: the Models tab shows disabled backends as "model discovery disabled by configuration" and reconciles their models as UNKNOWN
  • docs: README, USAGE, and EXAMPLES updated with the new option and Vertex AI guidance
  • tests: coverage for config parsing, skipped discovery, and the disabled TUI state

Allow backends to opt out of model discovery via a new model_discovery
config flag (defaults to true). Backends such as GCP Vertex AI do not
expose an OpenAI-compatible /v1/models endpoint, so the Models TUI tab
now marks them as disabled instead of surfacing an error. Also report
upstream HTTP failures with the standard status text instead of a
truncated response body.
@JaredHatfield
JaredHatfield merged commit fe8a0c4 into main Aug 18, 2026
6 checks passed
@JaredHatfield
JaredHatfield deleted the feat/model-discovery-config branch August 18, 2026 01:17
@github-project-automation github-project-automation Bot moved this from Todo to Done in UnitVectorY Labs Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant