on main help sign in
fix: add detail to error message to allow better debugging
84cd37fAndrey Nering
internal/agent/coordinator.go+2−1
@@ -6,6 +6,7 @@ import (
6 "context"
6 "context"
7 "encoding/json"
7 "encoding/json"
8 "errors"
8 "errors"
9+ "fmt"
9 "io"
10 "io"
10 "log/slog"
11 "log/slog"
11 "slices"
12 "slices"
@@ -605,7 +606,7 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con
605 case openaicompat.Name:
606 case openaicompat.Name:
606 return c.buildOpenaiCompatProvider(baseURL, apiKey, headers)
607 return c.buildOpenaiCompatProvider(baseURL, apiKey, headers)
607 default:
608 default:
608− return nil, errors.New("provider type not supported")
609+ return nil, fmt.Errorf("provider type not supported: %q", providerCfg.Type)
609 }
610 }
610}
611}
611
612