-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathai.config.js
More file actions
39 lines (32 loc) · 1.27 KB
/
Copy pathai.config.js
File metadata and controls
39 lines (32 loc) · 1.27 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
import { fileURLToPath } from 'url'
import { dirname, join } from 'path'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
export const aiConfig = {
// Model configuration
model: 'gpt-4o-mini',
temperature: 0.7,
maxTokens: 1500,
// Default system prompt - only used as fallback if prompt service fails
systemPrompt: "You are Echo, NodeByte's fox assistant. Be helpful, technical, and a bit sarcastic.",
// Short system prompt for lightweight contexts
shortSystemPrompt: "You're Echo, NodeByte's snarky fox assistant. Be helpful, technical, and a bit sarcastic.",
// Technical prompt for focused technical responses
technicalPrompt: "You're Echo, NodeByte's technical assistant. Focus on accuracy for technical topics.",
// Performance optimization settings
optimization: {
cacheEnabled: true,
cacheTTL: 3600,
prioritizeSpeed: true,
smartTokenBudgeting: true,
concurrentRequests: 3
},
// Prompt file paths
promptPaths: {
basePath: process.env.PROMPT_PATH || join(__dirname, '../echo-ai/prompts'),
corePrompt: 'core',
conversationPrompt: 'conversation',
technicalPrompt: 'technical',
synthesisPrompt: 'synthesis'
}
}