fix: enable responses api for github copilot

Andrey Nering created

Change summary

internal/agent/coordinator.go | 1 +
1 file changed, 1 insertion(+)

Detailed changes

internal/agent/coordinator.go 🔗

@@ -592,6 +592,7 @@ func (c *coordinator) buildOpenaiCompatProvider(baseURL, apiKey string, headers
 	// Set HTTP client based on provider and debug mode.
 	var httpClient *http.Client
 	if providerID == string(catwalk.InferenceProviderCopilot) {
+		opts = append(opts, openaicompat.WithUseResponsesAPI())
 		httpClient = copilot.NewClient(isSubAgent, c.cfg.Options.Debug)
 	} else if c.cfg.Options.Debug {
 		httpClient = log.NewHTTPClient()