()
| 147 | }) |
| 148 | |
| 149 | const configuredModel = () => { |
| 150 | const configured = sync().data.config.model |
| 151 | if (!configured) return |
| 152 | const [providerID, modelID] = configured.split("/") |
| 153 | const model = { providerID, modelID } |
| 154 | if (validModel(model)) return model |
| 155 | } |
| 156 | |
| 157 | const recentModel = () => { |
| 158 | for (const item of models.recent.list()) { |
no test coverage detected