(origin, option)
| 234 | }) |
| 235 | }, |
| 236 | getOllamaData(origin, option) { |
| 237 | return JSON.stringify({ |
| 238 | 'model': option, |
| 239 | "stream": false, |
| 240 | "temperature": 0.1, |
| 241 | 'messages': [ |
| 242 | {'role': 'system', 'content': chatMgs.getSystemMsg()}, |
| 243 | {'role': 'user', 'content': chatMgs.getUserMsg(origin)}, |
| 244 | ] |
| 245 | }) |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | // token 管理器 |
nothing calls this directly
no outgoing calls
no test coverage detected