v3
This commit is contained in:
+49
-18
@@ -2,48 +2,79 @@
|
||||
// This file contains all configurable settings for the application
|
||||
|
||||
export const appConfig = {
|
||||
// Vercel Sandbox Configuration
|
||||
vercelSandbox: {
|
||||
// Sandbox timeout in minutes
|
||||
timeoutMinutes: 15,
|
||||
|
||||
// Convert to milliseconds for Vercel Sandbox API
|
||||
get timeoutMs() {
|
||||
return this.timeoutMinutes * 60 * 1000;
|
||||
},
|
||||
|
||||
// Development server port (Vercel Sandbox typically uses 3000 for Next.js/React)
|
||||
devPort: 3000,
|
||||
|
||||
// Time to wait for dev server to be ready (in milliseconds)
|
||||
devServerStartupDelay: 7000,
|
||||
|
||||
// Time to wait for CSS rebuild (in milliseconds)
|
||||
cssRebuildDelay: 2000,
|
||||
|
||||
// Working directory in sandbox
|
||||
workingDirectory: '/app',
|
||||
|
||||
// Default runtime for sandbox
|
||||
runtime: 'node22' // Available: node22, python3.13, v0-next-shadcn, cua-ubuntu-xfce
|
||||
},
|
||||
|
||||
// E2B Sandbox Configuration
|
||||
e2b: {
|
||||
// Sandbox timeout in minutes
|
||||
timeoutMinutes: 15,
|
||||
|
||||
timeoutMinutes: 30,
|
||||
|
||||
// Convert to milliseconds for E2B API
|
||||
get timeoutMs() {
|
||||
return this.timeoutMinutes * 60 * 1000;
|
||||
},
|
||||
|
||||
// Vite development server port
|
||||
|
||||
// Development server port (E2B uses 5173 for Vite)
|
||||
vitePort: 5173,
|
||||
|
||||
// Time to wait for Vite to be ready (in milliseconds)
|
||||
viteStartupDelay: 7000,
|
||||
|
||||
// Time to wait for CSS rebuild (in milliseconds)
|
||||
cssRebuildDelay: 2000,
|
||||
|
||||
// Default sandbox template (if using templates)
|
||||
defaultTemplate: undefined, // or specify a template ID
|
||||
|
||||
// Time to wait for Vite dev server to be ready (in milliseconds)
|
||||
viteStartupDelay: 10000,
|
||||
|
||||
// Working directory in sandbox
|
||||
workingDirectory: '/home/user/app',
|
||||
},
|
||||
|
||||
// AI Model Configuration
|
||||
ai: {
|
||||
// Default AI model
|
||||
defaultModel: 'moonshotai/kimi-k2-instruct',
|
||||
defaultModel: 'google/gemini-3-pro-preview',
|
||||
|
||||
// Available models
|
||||
availableModels: [
|
||||
'openai/gpt-5',
|
||||
'moonshotai/kimi-k2-instruct',
|
||||
'moonshotai/kimi-k2-instruct-0905',
|
||||
'anthropic/claude-sonnet-4-20250514',
|
||||
'google/gemini-2.5-pro'
|
||||
'google/gemini-3-pro-preview'
|
||||
],
|
||||
|
||||
// Model display names
|
||||
modelDisplayNames: {
|
||||
'openai/gpt-5': 'GPT-5',
|
||||
'moonshotai/kimi-k2-instruct': 'Kimi K2 Instruct',
|
||||
'moonshotai/kimi-k2-instruct-0905': 'Kimi K2 (Groq)',
|
||||
'anthropic/claude-sonnet-4-20250514': 'Sonnet 4',
|
||||
'google/gemini-2.5-pro': 'Gemini 2.5 Pro'
|
||||
'google/gemini-3-pro-preview': 'Gemini 3 Pro (Preview)'
|
||||
} as Record<string, string>,
|
||||
|
||||
// Model API configuration
|
||||
modelApiConfig: {
|
||||
'moonshotai/kimi-k2-instruct-0905': {
|
||||
provider: 'groq',
|
||||
model: 'moonshotai/kimi-k2-instruct-0905'
|
||||
}
|
||||
},
|
||||
|
||||
// Temperature settings for non-reasoning models
|
||||
|
||||
Reference in New Issue
Block a user