* 系统提示词聊天
(systemPrompt: string, userMessage: string)
| 183 | * 系统提示词聊天 |
| 184 | */ |
| 185 | public async chatWithSystem(systemPrompt: string, userMessage: string): Promise<string> { |
| 186 | const messages: LLMMessage[] = [ |
| 187 | { role: 'system', content: systemPrompt }, |
| 188 | { role: 'user', content: userMessage }, |
| 189 | ]; |
| 190 | return await this.conversation(messages); |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * 代码生成 |
nothing calls this directly
no test coverage detected