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
* fix(client): register minimax_token_plan and minimax_payg in OpenAICompatibleProviders + DetectProvider
* test(client): add provider-registry drift test to prevent future mismatches
* docs: sync provider counts (12 → 15) in CREDENTIAL-SETUP-FLOW and DYNAMIC-MODEL-DISCOVERY
* test(client): make provider-registry drift test robust to test shuffling
The drift test was reading CoreProviders/OpenAICompatibleProviders directly,
so any test that called RegisterDynamicProvider at runtime (e.g.
TestDynamicProvider_OptIn_Registers) would pollute the maps and cause
TestProviderRegistry_NoDriftFromCatalog to fail under -shuffle=on.
Capture the static maps once at init() time into staticProviderNames and
compare against the snapshot. This is the same robustness pattern used by
other tests in the package.
Copy file name to clipboardExpand all lines: docs/guides/DYNAMIC-MODEL-DISCOVERY.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,14 +37,14 @@ User → Hawk /config
37
37
38
38
| Area | Problem |
39
39
|------|---------|
40
-
|**Live fetch**| All 12 setup gateways have fetchers; some older gateways still have thin test coverage (z-ai, opencodego, kimi). MiMo split: `xiaomi_mimo_payg`, `xiaomi_mimo_token_plan` (`catalog/live/xiaomi_test.go`, `catalog/xiaomi/`). Anthropic, Gemini, Ollama RawJSON gaps remain |
40
+
|**Live fetch**| All 15 setup gateways have fetchers; some older gateways still have thin test coverage (z-ai, opencodego, kimi). MiMo split: `xiaomi_mimo_payg`, `xiaomi_mimo_token_plan` (`catalog/live/xiaomi_test.go`, `catalog/xiaomi/`). Anthropic, Gemini, Ollama RawJSON gaps remain |
41
41
|**Ollama**| No longer bypasses `ListModels`; RetryConfig moved to ProviderSpec. Remaining: hardcoded `== "ollama"` in validation |
| **Ollama** | `OLLAMA_BASE_URL` | `GET /api/tags` | `/api/tags` | Zero models = error; no remote fallback in picker |
292
295
293
296
### Modeldiscovery (all setup providers)
@@ -326,7 +329,7 @@ DiscoverCatalog(ctx, opts)
326
329
327
330
## 8. Merge policy
328
331
329
-
**Implemented:**`discover.MergeCatalogV1WithPolicy` replaces deployment offerings from live fetch, then **fully replaces** model rows for prefer-live providers (all 12 setup gateways). Offerings merge pricing, capabilities, and `live_metadata` from the live catalog.
332
+
**Implemented:** `discover.MergeCatalogV1WithPolicy` replaces deployment offerings from live fetch, then **fully replaces** model rows for prefer-live providers (all 15 setup gateways). Offerings merge pricing, capabilities, and `live_metadata` from the live catalog.
330
333
331
334
Remote catalog JSON still supplies deployments, protocols, and bootstrap metadata — not picker model IDs for setup gateways.
0 commit comments