on main help sign in
fix: enable responses api for github copilot
5f7beb0Andrey Nering
internal/agent/coordinator.go+1
@@ -592,6 +592,7 @@ func (c *coordinator) buildOpenaiCompatProvider(baseURL, apiKey string, headers
592 // Set HTTP client based on provider and debug mode.
592 // Set HTTP client based on provider and debug mode.
593 var httpClient *http.Client
593 var httpClient *http.Client
594 if providerID == string(catwalk.InferenceProviderCopilot) {
594 if providerID == string(catwalk.InferenceProviderCopilot) {
595+ opts = append(opts, openaicompat.WithUseResponsesAPI())
595 httpClient = copilot.NewClient(isSubAgent, c.cfg.Options.Debug)
596 httpClient = copilot.NewClient(isSubAgent, c.cfg.Options.Debug)
596 } else if c.cfg.Options.Debug {
597 } else if c.cfg.Options.Debug {
597 httpClient = log.NewHTTPClient()
598 httpClient = log.NewHTTPClient()