This commit is contained in:
Wen Zhou 2025-07-24 21:06:24 +02:00 committed by GitHub
commit beae27975b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 176 additions and 2 deletions

View file

@ -51,18 +51,22 @@ class ProviderImpl(Providers):
# Skip providers that are not enabled
if p.provider_id is None:
continue
# Filter out "metrics" to be shown in config duplicated
metrics_url = p.config.get("metrics")
config = {k: v for k, v in p.config.items() if k != "metrics"}
ret.append(
ProviderInfo(
api=api,
provider_id=p.provider_id,
provider_type=p.provider_type,
config=p.config,
config=config,
health=providers_health.get(api, {}).get(
p.provider_id,
HealthResponse(
status=HealthStatus.NOT_IMPLEMENTED, message="Provider does not implement health check"
),
),
metrics=metrics_url,
)
)