(conversationId, newContent, historyBefore, opts)
| 137 | }, |
| 138 | |
| 139 | async *edit(conversationId, newContent, historyBefore, opts) { |
| 140 | const model = opts?.model ?? DEFAULT_MODEL; |
| 141 | const messages = [ |
| 142 | ...toApiMessages(historyBefore), |
| 143 | { role: "user", content: newContent }, |
| 144 | ]; |
| 145 | yield* streamRequest( |
| 146 | conversationId, |
| 147 | { messages, model, stream: true }, |
| 148 | opts |
| 149 | ); |
| 150 | }, |
| 151 | |
| 152 | async stop(conversationId) { |
| 153 | activeControllers.get(conversationId)?.abort(); |
nothing calls this directly
no test coverage detected