Change summary
internal/agent/coordinator.go | 6 ++++++
1 file changed, 6 insertions(+)
Detailed changes
@@ -694,6 +694,12 @@ func (c *coordinator) buildProvider(providerCfg config.ProviderConfig, model con
case "google-vertex":
return c.buildGoogleVertexProvider(headers, providerCfg.ExtraParams)
case openaicompat.Name:
+ if providerCfg.ID == string(catwalk.InferenceProviderZAI) {
+ if providerCfg.ExtraBody == nil {
+ providerCfg.ExtraBody = map[string]any{}
+ }
+ providerCfg.ExtraBody["tool_stream"] = true
+ }
return c.buildOpenaiCompatProvider(baseURL, apiKey, headers, providerCfg.ExtraBody)
default:
return nil, fmt.Errorf("provider type not supported: %q", providerCfg.Type)