MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / getSystemPrompt

Function getSystemPrompt

frontend/lib/system-prompts.ts:351–373  ·  view source on GitHub ↗
(modelId?: string)

Source from the content-addressed store, hash-verified

349 * @returns The system prompt string
350 */
351export function getSystemPrompt(modelId?: string): string {
352 const modelName = modelId || "AI"
353
354 let prompt: string
355 if (
356 modelId &&
357 EXTENDED_PROMPT_MODEL_PATTERNS.some((pattern) =>
358 modelId.includes(pattern),
359 )
360 ) {
361 console.log(
362 `[System Prompt] Using EXTENDED prompt for model: ${modelId}`,
363 )
364 prompt = EXTENDED_SYSTEM_PROMPT
365 } else {
366 console.log(
367 `[System Prompt] Using DEFAULT prompt for model: ${modelId || "unknown"}`,
368 )
369 prompt = DEFAULT_SYSTEM_PROMPT
370 }
371
372 return prompt.replace("{{MODEL_NAME}}", modelName)
373}

Callers 1

handleChatRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected