ui/server/src/storyAiApi
(design docs/design/ia-five-screens.md 9.6) -- the HTTP surface for the two AI-assisted story flows: POST /api/story-ai/skeleton structure-only skeleton of a login-only page (no model call) -- shown to the user BEFORE...
Cockpit server, next. Source: ui/server/src/storyAiApi.mjs.
Variables#
MAX_HTML_BYTES#
constMAX_HTML_BYTES:2000000=2_000_000
Defined in: ui/server/src/storyAiApi.mjs:33
Functions#
createStoryAiRouter()#
createStoryAiRouter(
deps?):any
Defined in: ui/server/src/storyAiApi.mjs:96
Parameters#
deps?
callLlmImpl?
(provider, prompt, options) => Promise<any> = callLlm
clientOrigin?
string
getOllamaStatusImpl?
() => Promise<{ host?: undefined; running: boolean; version?: undefined; } | { host: any; running: boolean; version: any; } | { host: any; running: boolean; version?: undefined; }> = getOllamaStatus
llmTimeoutMs?
number
provider?
string = 'ollama'
Returns#
any