-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
37 lines (30 loc) · 1.03 KB
/
Copy path.env.example
File metadata and controls
37 lines (30 loc) · 1.03 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
APP_NAME=Postas Platform API
API_PREFIX=/api/v1
DATABASE_URL=sqlite:///./postas_platform.db
# Internal service-to-service security for /internal/v1.
POSTAS_SERVICE_TOKEN=local-service-token
POSTAS_SERVICE_TOKEN_HEADER=X-Postas-Service-Token
POSTAS_SERVICE_SOURCE_HEADER=X-Postas-Source
ALLOWED_REQUEST_SOURCES=postas_api,postas_ai_api
# Legacy AI processing security. These endpoints remain available while the
# service is migrated from postas_ai_api to postas_platform_api.
POSTAS_AI_API_TOKEN=token-acceso-test
REQUIRE_API_TOKEN=true
POSTAS_AI_TOKEN_HEADER=X-Postas-AI-Token
POSTAS_AI_SOURCE_HEADER=X-Postas-Source
# AI providers
AI_PROVIDER=google_genai
FALLBACK_AI_PROVIDER=
MAX_AI_ATTEMPTS=1
# Gemini
GOOGLE_API_KEY=
GOOGLE_MODEL=gemini-2.5-flash-lite
# Image download
IMAGE_DOWNLOAD_TIMEOUT_SECONDS=15
MAX_IMAGE_BYTES=10485760
# Confidence thresholds
ACCEPTED_CONFIDENCE_THRESHOLD=0.85
MINIMUM_CONFIDENCE_THRESHOLD=0.60
# Optional cost estimation by provider/model pricing.
INPUT_TOKEN_COST_PER_MILLION=0.10
OUTPUT_TOKEN_COST_PER_MILLION=0.40