Initial commit: Vision scanner for shelf/pantry product extraction
This commit is contained in:
14
src/config.ts
Normal file
14
src/config.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export const config = {
|
||||
port: parseInt(process.env.PORT || "8002", 10),
|
||||
visionAiUrl: process.env.VISION_AI_URL || "http://localhost:8000/v1/chat/completions",
|
||||
visionAiModel: process.env.VISION_AI_MODEL || "qwen2.5vl-it:3b",
|
||||
visionAiTimeout: parseInt(process.env.VISION_AI_TIMEOUT || "120000", 10),
|
||||
ollamaHost: process.env.OLLAMA_HOST || "http://192.168.0.15:11434",
|
||||
ollamaEmbedModel: process.env.OLLAMA_EMBED_MODEL || "nomic-embed-text",
|
||||
chromaHost: process.env.CHROMA_HOST || "http://192.168.0.15:8000",
|
||||
geminiApiKey: process.env.GEMINI_API_KEY || "",
|
||||
geminiModel: process.env.GEMINI_MODEL || "gemini-2.5-flash",
|
||||
maxConcurrentTiles: parseInt(process.env.MAX_CONCURRENT_TILES || "4", 10),
|
||||
uploadDir: process.env.UPLOAD_DIR || "uploads",
|
||||
maxFileSize: 10 * 1024 * 1024, // 10MB
|
||||
};
|
||||
Reference in New Issue
Block a user