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
{{ message }}
Repository navigation
bug: provider shortcut string does not resolve preset base_url #183
PR #178 added shortcut format for provider config (provider: zai instead of nested object). However, the shortcut format does not resolve default_base_url from the provider preset table. This causes the model to use the OpenAI default URL instead of the ZAI URL.
Impact
Users configure provider: zai in .cora.yaml but get OpenAI base_url
Only workaround is to always use nested format with explicit base_url
Expected Behavior
# This should resolve to:# provider: zai, model: glm-5.1, base_url: https://api.z.ai/api/coding/paas/v4provider: zaimodel: glm-5.1
Actual Behavior
provider: zaimodel: glm-5.1# base_url resolves to https://api.openai.com/v1 (wrong!)
Fix
merge_top_level_provider_shortcuts() in src/config/schema.rs needs to look up the preset table and fill default_base_url when provider is a bare string.
Activity
fix(v0.4.3): 6 UX fixes from full codebase review (#190)
ajianaz commentedon Jun 7, 2026
Fixed by existing code in
merge_into()(src/config/schema.rs). The preset resolution already works for bare string providers —provider: zaicorrectly resolves to model: glm-5.1, base_url: https://api.z.ai/api/coding/paas/v4. Verified with test.fix: add rules/ to default exclude paths + close already-fixed issues (…