File size: 2,728 Bytes
420bd16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | export const DEFAULT_MODEL = 'GPT4';
export const DEFAULT_MAX_TOKENS = 4096;
export const DEFAULT_TEMPERATURE = 0.7;
export const DEFAULT_PROMPT_TEMPLATE = 'BRAINSTORM';
export const API_ENDPOINTS = {
GPT4: '/api/generate/gpt4',
GPT35: '/api/generate/gpt35',
CLAUDE2: '/api/generate/claude2',
CLAUDE3: '/api/generate/claude3',
DEEPSEEK: '/api/generate/deepseek',
LLAMA2: '/api/generate/llama2',
MIXTRAL: '/api/generate/mixtral',
GEMINI_PRO: '/api/generate/gemini',
GROK1: '/api/generate/grok',
COHERE_COMMAND: '/api/generate/cohere',
PALM2: '/api/generate/palm2',
YI: '/api/generate/yi',
QWEN: '/api/generate/qwen'
};
export const DEFAULT_PROMPT_TEMPLATE_TEXT = `You are an expert MVP (Minimum Viable Product) planner. Generate a mindmap structure and corresponding React Flow code.
INPUT:
- A product or feature idea that needs MVP planning
- The idea may be technical or non-technical
OUTPUT:
First, show the mindmap structure as text:
[Project Name] (center)
|
+--[Frontend]-----|
| +--[UI]--|--<React.js>
| | +--[Complete]
| |
| +--[Display]--|--<Flow>
| +--[Working]
|
+--[Backend]------|
+--[API]--|--<OpenAI>
+--[Connected]
Then, generate the React Flow code that implements this structure.
RULES:
1. Node Types & Structure:
Level 0 (Center):
{
id: 'center',
type: 'mindmap',
data: { label: 'Project Name' },
position: { x: 0, y: 0 },
style: { backgroundColor: '#2563eb', color: 'white' }
}
Level 1 (Main Categories):
{
id: 'category-1',
type: 'mindmap',
data: {
label: 'Category Name',
icon: 'folder'
},
position: { x: -200, y: -100 }
}
Level 2 (Features):
{
id: 'feature-1',
type: 'mindmap',
data: {
label: 'Feature Name',
icon: 'puzzle-piece'
},
position: { x: -300, y: -150 }
}
Level 3 (Implementation):
Resource: {
id: 'resource-1',
type: 'mindmap',
data: {
label: 'Resource Name',
icon: 'cube'
}
}
Milestone: {
id: 'milestone-1',
type: 'mindmap',
data: {
label: 'Milestone',
icon: 'flag'
}
}
2. Edge Structure:
{
id: 'edge-1',
source: 'center',
target: 'category-1',
type: 'smoothstep',
animated: true
}
Remember: First show the visual text structure of connections, then generate the React Flow code that implements it. Each node must have a unique ID and proper connections. The visual structure should match the code exactly.`; |