12 lines
539 B
Python
12 lines
539 B
Python
"""Central config — single source of truth cho LLM/service settings.
|
|
Đổi base_url / model chỉ cần sửa file này."""
|
|
import os
|
|
|
|
# llama-server (Qwen2.5-VL) qua SSH tunnel; Docker reach host qua host.docker.internal
|
|
LLM_BASE_URL = "http://host.docker.internal:11436/v1"
|
|
LLM_MODEL = "ggml-org/Qwen2.5-VL-3B-Instruct-GGUF"
|
|
CLEANUP_MODEL = os.getenv("CLEANUP_MODEL", "")
|
|
|
|
# Vision OCR gom về vision-service (container api-vision). Ảnh → POST {VISION_URL}/ocr
|
|
VISION_URL = os.getenv("VISION_URL", "http://api-vision:8000")
|