fix: resolve gateway binary path, pass --config flag, and clarify empty model error (#1337)

This commit is contained in:
Cage authored and GitHub committed 2026-03-11 12:54:08 +08:00
1 parent 755fa32336
commit d5cbf198b2
3 files changed
+58 -6

No files matched your search

+4
View File
@@ -40,6 +40,10 @@ func resolveProviderSelection(cfg *config.Config) (providerSelection, error) {
providerName := strings.ToLower(cfg.Agents.Defaults.Provider)
lowerModel := strings.ToLower(model)
if providerName == "" && model == "" {
return providerSelection{}, fmt.Errorf("no model configured: agents.defaults.model is empty")
}
sel := providerSelection{
providerType: providerTypeHTTPCompat,
model: model,