ManimCat / src /services /code-retry /prompts.ts
Bin29's picture
Sync from main: 68df783 feat: support multimodal studio reference images
d47b053
/**
* Code Retry Service - Prompts
* 使用新的模板加载器
*/
import { getRoleSystemPrompt, getRoleUserPrompt, getSharedModule, type PromptOverrides } from '../../prompts'
import type { OutputMode } from '../../types'
// System prompt - 使用新的加载器
export const CODE_RETRY_SYSTEM_PROMPT = getRoleSystemPrompt('codeRetry')
/**
* 构建首次代码生成的用户提示词
*/
export function buildInitialCodePrompt(
concept: string,
seed: string,
sceneDesign: string,
outputMode: OutputMode,
overrides?: PromptOverrides
): string {
return getRoleUserPrompt(
'codeGeneration',
{
concept,
seed,
sceneDesign,
outputMode,
isImage: outputMode === 'image',
isVideo: outputMode === 'video'
},
overrides
)
}