* 发送完成消息给渲染进程
(
event: Electron.IpcMainInvokeEvent,
eventChannel: string,
content: string,
reasoning_content?: string
)
| 154 | * 发送完成消息给渲染进程 |
| 155 | */ |
| 156 | private sendComplete( |
| 157 | event: Electron.IpcMainInvokeEvent, |
| 158 | eventChannel: string, |
| 159 | content: string, |
| 160 | reasoning_content?: string |
| 161 | ): void { |
| 162 | event.sender.send(eventChannel, { |
| 163 | type: 'complete', |
| 164 | content, |
| 165 | reasoning_content: reasoning_content || undefined |
| 166 | } as AIStreamChunk) |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * 创建并发送 API 请求 |
no outgoing calls
no test coverage detected