Change summary
internal/agent/coordinator.go | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
Detailed changes
@@ -705,12 +705,13 @@ 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
- }
+ // INFO: Temporary disable this because it is causing issues.
+ // 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)