* 销毁 LLM
()
| 101 | * 销毁 LLM |
| 102 | */ |
| 103 | public async destroy(): Promise<void> { |
| 104 | if (this.llm) { |
| 105 | await this.llm.destroy(); |
| 106 | this.log('LLM 已销毁'); |
| 107 | } |
| 108 | this.llm = undefined; |
| 109 | this.isInitialized = false; |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * 检查 LLM 是否可用 |
no test coverage detected