okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
0b3299a01
main
1import { tr } from './i18n' ; 2import type { Session } from './types' ; 3/** Untitled, empty chats are interface copy; chosen names and prompt titles are user content. */ 4export function sessionTitle ( session :Pick < Session , 'title' | 'messages' | 'defaultTitle' >){ 5return session . title === 'New conversation' &&! session . messages . length && session . defaultTitle !== false ?tr ( 'New conversation' ) :session . title ; 6}