okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221apps/host: the owner's UI and the Node App Host0b3299a01

main
389 B6 linesraw
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'>){
5 return session.title==='New conversation'&&!session.messages.length&&session.defaultTitle!==false?tr('New conversation'):session.title;
6}