on main help sign in
fix(hyper): ensure it's possible to override with `HYPER_URL`
commitd89120c5309359561c267b76e36918fab0ff6b1f authorAndrey Nering <andreynering@users.noreply.github.com> dateWed 25 Mar 2026, 15:46 (7 months ago) parent18e1df4
1 file changed+2−3
internal/agent/coordinator.go+2−3
internal/agent/coordinator.go+2−3
@@ -778,9 +778,8 @@ func (c *coordinator) buildGoogleVertexProvider(headers map[string]string, optio
778778 return google.New(opts...)
779779}
780780
781−func (c *coordinator) buildHyperProvider(baseURL, apiKey string) (fantasy.Provider, error) {
781+func (c *coordinator) buildHyperProvider(apiKey string) (fantasy.Provider, error) {
782782 opts := []hyper.Option{
783− hyper.WithBaseURL(baseURL),
784783 hyper.WithAPIKey(apiKey),
785784 }
786785 if c.cfg.Config().Options.Debug {
@@ -842,7 +841,7 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con
842841 }
843842 return c.buildOpenaiCompatProvider(baseURL, apiKey, headers, providerCfg.ExtraBody, providerCfg.ID, isSubAgent)
844843 case hyper.Name:
845− return c.buildHyperProvider(baseURL, apiKey)
844+ return c.buildHyperProvider(apiKey)
846845 default:
847846 return nil, fmt.Errorf("provider type not supported: %q", providerCfg.Type)
848847 }