MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / narrativeModel

Function narrativeModel

packages/ai/src/narrative.ts:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const NARRATIVE_MODEL_ID = 'gpt-4-1-mini';
10
11function narrativeModel() {
12 const entry =
13 ALLOWED_MODELS.find((m) => m.id === NARRATIVE_MODEL_ID) ??
14 ALLOWED_MODELS.find((m) => m.group === 'OpenAI');
15 if (!entry) {
16 throw new Error('No OpenAI model available for weekly narrative');
17 }
18 return resolveModel(entry);
19}
20
21export interface WeeklyNarrativeInput {
22 projectName: string;

Callers 1

getAppFunction · 0.85

Calls 1

resolveModelFunction · 0.90

Tested by

no test coverage detected