Fix orchestrator logic and workspace push for planning confirmation and artifact handling
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user