You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
980 B
22 lines
980 B
/**
|
|
* Project-owned session persona — the model and system instructions a
|
|
* branched client project actually wants. Isomorphic (no server/client-only
|
|
* imports), mirroring `$lib/project/tools.ts`: core never imports this file
|
|
* directly (see docs/TOOLS.md) — `resolveSessionDefaults` in
|
|
* `$lib/server/core/defaults.ts` takes it as a parameter instead, and the
|
|
* composition roots (server.js, vite.config.ts) are what wire it in.
|
|
*
|
|
* A branched project edits this file freely. `model` can also be overridden
|
|
* per-deployment via the `SESSION_MODEL` env var (see
|
|
* $lib/server/core/config.ts); `instructions` deliberately has no env
|
|
* override — prose doesn't belong in a .env value, and this file is its home.
|
|
*/
|
|
export interface SessionPersona {
|
|
model: string;
|
|
instructions: string;
|
|
}
|
|
|
|
export const SESSION_PERSONA: SessionPersona = {
|
|
model: 'gpt-realtime',
|
|
instructions: 'You are a helpful voice assistant for a webavatar demo. Keep responses concise.'
|
|
};
|
|
|