MCPcopy Create free account
hub / github.com/ChatGPTBox-dev/chatGPTBox / initDefaultSession

Function initDefaultSession

src/services/local-session.mjs:6–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { canonicalizeSessionModelFields } from '../config/model-key-migrations.mjs'
5
6export 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
17export const createSession = async (newSession) => {
18 let currentSessions

Callers 2

createSessionFunction · 0.85
resetSessionsFunction · 0.85

Calls 2

getUserConfigFunction · 0.90
initSessionFunction · 0.90

Tested by

no test coverage detected