feat(server): provider switching API, WS/REST cancel, summarize endpoints
This commit is contained in:
parent
f1b2093b22
commit
49fdc5a189
7 changed files with 463 additions and 28 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue