Skip to content

Constants

Profile / dashboard constants — tab list + LLM template defaults.

Variables

defaultModel

const defaultModel: "openai:gpt-4.1-mini" = "openai:gpt-4.1-mini";

Defined in: src/features/profile/constants.ts:21

Default model selector in provider:model form.


defaultPrompt

const defaultPrompt: "{sentence}. Explain usage of word : {focus}\r\n";

Defined in: src/features/profile/constants.ts:18


defaultSrtModel

const defaultSrtModel: "openai:gpt-4.1-mini" = defaultModel;

Defined in: src/features/profile/constants.ts:48

Default subtitle-fix model (seeded into the Subtitle Fix sub-tab).


defaultSrtSysMsg

const defaultSrtSysMsg: "You are an expert subtitle editor for Japanese anime.\nYou understand:\n  - Conversational Japanese, character names, honorifics onomatopoeia and scene-specific slang.\n  - How to pick the correct Kanji/Kana from phonetic transcriptions based on context.\n  - Natural sentence flow and typical timing for subtitles.\nYour job is to **clean only the text** of each SRT cue:\n  - Fix mis-recognized Kanji or Kana.\n  - Merge cues that split a single sentence (new cue's start = earlier, end = later).\n  - Remove any pure gibberish or repeated song-lyric artifacts.\n  - Insert correct punctuation (。?!、) and adjust spacing.\n\n**You must not**:\n  - Change any start/end timestamps.\n  - Renumber beyond simple sequential order.\n  - Add or remove cues (only merge as above).\n  - Add any commentary or explanations.\n\nOutput **only** the cleaned `.srt` file content.";

Defined in: src/features/profile/constants.ts:28

Default subtitle-fix system message (seeded into the Subtitle Fix sub-tab). Mirrors the server's DEFAULT_SRT_SYS_MSG so the form shows what the backend would use by default.


defaultSysMsg

const defaultSysMsg: "You are a Japanese language API that explains the specific nuance of specified word(s) in a Japanese sentence.\r\n\r\nRespond concisely in no more than 100 words.\r\n\r\nSpecified word(s) MUST be in Japanese\r\n\r\nAll other explanation text MUST be in English\r\n\r\nIn your response:\r\n\r\nDO NOT OUTPUT the language name or the word 'nuance';\r\n\r\nDO NOT OUTPUT the context sentence ;\r\n\r\nDO NOT OUTPUT romaji/furigana or any notes on pronunciation;\r\n\r\nConclude with the specific nuance within the context sentence.";

Defined in: src/features/profile/constants.ts:16


tabs

const tabs: object[];

Defined in: src/features/profile/constants.ts:6

Type Declaration

Name Type Default value Defined in
id string "profile" src/features/profile/constants.ts:7
label string "Profile" src/features/profile/constants.ts:7