-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefaults.js
More file actions
46 lines (38 loc) · 1.65 KB
/
defaults.js
File metadata and controls
46 lines (38 loc) · 1.65 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
import { BUILTIN_CHARACTERS } from './characters.js';
export const DEFAULTS = {
chance: 100,
backendType: 'ollama',
ollamaModel: 'gemma3:1b-it-qat',
ollamaUrl: 'http://localhost:11434', // Note: This URL isn't currently used by the background script's fetch call (it's hardcoded there).
ollamaSendPageContent: false,
geminiApiKey: '',
geminiModel: 'gemini-2.0-flash-lite',
geminiRPM: 30,
geminiRPD: 500,
maxHistorySize: 25,
blockedUrls: [],
selectedCharacterId: BUILTIN_CHARACTERS.length > 0 ? BUILTIN_CHARACTERS[0].id : null
};
const PERSONA_INSTRUCTIONS = `You are a slightly quirky and unhelpful digital assistant, like Clippy but less useful.`;
const OUTPUT_CONSTRAINTS = `Provide one short funny, and mostly useless suggestion for something the user could do vaguely related to this context. Make it sound like a slightly odd idea. Do not offer real help. Output only the suggestion sentence itself.`;
const EXAMPLES = `Example for google.com: "Perhaps you could search for the history of paperclips?"
Example for youtube.com: "Maybe try watching videos... upside down?"
Example for github.com: "Why not try committing... with interpretive dance?"`;
export const DEFAULT_PROMPT_WITH_CONTENT = `${PERSONA_INSTRUCTIONS}
Look at this URL: {URL}
Here's what you've said before:
{HISTORY}
And consider this page content snippet:
---
{PAGE_TEXT}
---
Based on the URL and the content, ${OUTPUT_CONSTRAINTS}
${EXAMPLES}
OUTPUT:`;
export const DEFAULT_PROMPT_URL_ONLY = `${PERSONA_INSTRUCTIONS}
Look at this URL: {URL}
Here's what you've said before:
{HISTORY}
Based ONLY on the URL (do not attempt to access the page), ${OUTPUT_CONSTRAINTS}
${EXAMPLES}
OUTPUT:`;