KSvend commited on
Commit ·
7534962
1
Parent(s): bd83d04
feat: add ANTHROPIC_API_KEY config and AoiAdviceRequest model
Browse files- app/config.py +3 -0
- app/models.py +4 -0
app/config.py
CHANGED
|
@@ -19,6 +19,9 @@ OPENEO_BACKEND: str = os.environ.get(
|
|
| 19 |
OPENEO_CLIENT_ID: str | None = os.environ.get("OPENEO_CLIENT_ID")
|
| 20 |
OPENEO_CLIENT_SECRET: str | None = os.environ.get("OPENEO_CLIENT_SECRET")
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
# Expert weights for the visual overview composite score.
|
| 23 |
# Normalized to 1.0. Indicators not selected or skipped are excluded
|
| 24 |
# and weights are re-normalized.
|
|
|
|
| 19 |
OPENEO_CLIENT_ID: str | None = os.environ.get("OPENEO_CLIENT_ID")
|
| 20 |
OPENEO_CLIENT_SECRET: str | None = os.environ.get("OPENEO_CLIENT_SECRET")
|
| 21 |
|
| 22 |
+
# Anthropic API key for AOI advisor (Claude-powered region insight).
|
| 23 |
+
ANTHROPIC_API_KEY: str | None = os.environ.get("ANTHROPIC_API_KEY")
|
| 24 |
+
|
| 25 |
# Expert weights for the visual overview composite score.
|
| 26 |
# Normalized to 1.0. Indicators not selected or skipped are excluded
|
| 27 |
# and weights are re-normalized.
|
app/models.py
CHANGED
|
@@ -146,3 +146,7 @@ class IndicatorMeta(BaseModel):
|
|
| 146 |
category: str
|
| 147 |
question: str
|
| 148 |
estimated_minutes: int
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
category: str
|
| 147 |
question: str
|
| 148 |
estimated_minutes: int
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
class AoiAdviceRequest(BaseModel):
|
| 152 |
+
bbox: list[float] = Field(min_length=4, max_length=4)
|