-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
60 lines (53 loc) · 2.06 KB
/
Copy pathconstants.ts
File metadata and controls
60 lines (53 loc) · 2.06 KB
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
import { GeminiModel } from './types';
export const MODELS = [
{ id: GeminiModel.PRO, name: 'Gemini 3 Pro', description: 'Deep reasoning and coding' },
{ id: GeminiModel.FLASH, name: 'Gemini 3 Flash', description: 'Fast and concise' },
{ id: GeminiModel.CHATGPT, name: 'ChatGPT Mode', description: 'Conversational and detailed' },
{ id: GeminiModel.PERPLEXITY, name: 'Perplexity Mode', description: 'Real-time search grounded' },
{ id: GeminiModel.LMARENA, name: 'LM Arena Mode', description: 'Highly competitive and precise' },
];
export const SUPPORTED_LANGUAGES = [
"JavaScript",
"Python",
"TypeScript",
"Java",
"C++",
"C#",
"Ruby",
"Go",
"Rust",
"Swift",
"PHP"
];
export const DEFAULT_CODE_SNIPPET = `function findMax(arr) {
let max = arr[0];
for (let i = 1; i < arr.length; i++) {
if (arr[i] > max) {
max = arr[i];
}
}
return max;
}`;
export const DEFAULT_LOGIC_INPUT = "Create a function that takes a list of names and returns only the ones that start with 'A', sorted alphabetically.";
export const EXPLAINER_SYSTEM_PROMPT = `You are an expert programming educator.
Explain the provided code snippet using simple analogies and a visual logic flow.
Respond ONLY in JSON:
{
"explanation": "Summary",
"analogies": ["Analogy 1", "Analogy 2"],
"workflow": ["Step 1", "Step 2"],
"diagram": { "nodes": [{"id": "n1", "label": "Start"}], "links": [] },
"followUp": "Question?"
}`;
export const ARCHITECT_SYSTEM_PROMPT = `You are an expert software architect.
Convert the following logic description into clean, efficient code in the specified language.
Also provide simple analogies and a visual logic flow for the generated code.
Respond ONLY in JSON:
{
"code": "The generated code block",
"explanation": "Brief explanation of the generated code",
"analogies": ["Real-world analogy for how the code logic works"],
"workflow": ["Step-by-step breakdown of how the generated code executes"],
"diagram": { "nodes": [{"id": "n1", "label": "Input"}], "links": [] },
"followUp": "Suggest a way to optimize or extend this code."
}`;