()
| 4 | import { canonicalizeSessionModelFields } from '../config/model-key-migrations.mjs' |
| 5 | |
| 6 | export const initDefaultSession = async () => { |
| 7 | const config = await getUserConfig() |
| 8 | return initSession({ |
| 9 | sessionName: new Date().toLocaleString(), |
| 10 | modelName: config.modelName, |
| 11 | apiMode: config.apiMode, |
| 12 | autoClean: false, |
| 13 | extraCustomModelName: config.customModelName, |
| 14 | }) |
| 15 | } |
| 16 | |
| 17 | export const createSession = async (newSession) => { |
| 18 | let currentSessions |
no test coverage detected