feat(server): provider switching API, WS/REST cancel, summarize endpoints

This commit is contained in:
OpenClaw Dev 2026-10-25 04:48:09 +01:00
parent f1b2093b22
commit 49fdc5a189
7 changed files with 463 additions and 28 deletions

View file

@ -89,7 +89,7 @@ func (a *Agent) summarizeLocked(ctx context.Context, prov llm.Provider, sessionI
resp, err := prov.Chat(ctx, llm.Request{Messages: []llm.Message{
{Role: llm.RoleSystem, Content: summarizePrompt},
{Role: llm.RoleUser, Content: b.String()},
}}, nil)
}}, func(string) {})
if err != nil {
return nil, fmt.Errorf("summarize: %w", err)
}