Fix orchestrator logic and workspace push for planning confirmation and artifact handling

This commit is contained in:
whlaoding
2026-03-16 13:17:23 +08:00
parent 9fccb0a473
commit 2ecf4e903a
6 changed files with 217 additions and 38 deletions

View File

@@ -152,8 +152,12 @@ func (c *OpenAICompatibleClient) GenerateWithTools(ctx context.Context, messages
choice := resp.Choices[0]
resultToolCalls := fromSDKToolCalls(choice.Message.ToolCalls)
if c.log != nil {
c.log.Infof("llm tool-call response success model=%s content_len=%d tool_calls=%d finish=%s",
model, len(choice.Message.Content), len(resultToolCalls), choice.FinishReason)
toolNames := make([]string, 0, len(resultToolCalls))
for _, tc := range resultToolCalls {
toolNames = append(toolNames, tc.Function.Name)
}
c.log.Infof("llm tool-call response success model=%s content_len=%d tool_calls=%d names=%v finish=%s",
model, len(choice.Message.Content), len(resultToolCalls), toolNames, choice.FinishReason)
}
return &ChatCompletion{