diff --git a/internal/agent/coordinator.go b/internal/agent/coordinator.go index 91c3a2c7b71757080084d6f6cd64ea0ab5fde602..a64029e910e0b2ce77ae2eb2e53ab4ad589c0f99 100644 --- a/internal/agent/coordinator.go +++ b/internal/agent/coordinator.go @@ -778,9 +778,8 @@ func (c *coordinator) buildGoogleVertexProvider(headers map[string]string, optio return google.New(opts...) } -func (c *coordinator) buildHyperProvider(baseURL, apiKey string) (fantasy.Provider, error) { +func (c *coordinator) buildHyperProvider(apiKey string) (fantasy.Provider, error) { opts := []hyper.Option{ - hyper.WithBaseURL(baseURL), hyper.WithAPIKey(apiKey), } if c.cfg.Config().Options.Debug { @@ -842,7 +841,7 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con } return c.buildOpenaiCompatProvider(baseURL, apiKey, headers, providerCfg.ExtraBody, providerCfg.ID, isSubAgent) case hyper.Name: - return c.buildHyperProvider(baseURL, apiKey) + return c.buildHyperProvider(apiKey) default: return nil, fmt.Errorf("provider type not supported: %q", providerCfg.Type) }