Files
awoooi/apps/api/requirements.txt
OG T 1ac8965a7a feat(api): Phase 15.1 Langfuse LLMOps 整合 + 模型升級
## 新功能
- Langfuse 自建部署 (192.168.0.110:3100)
- langfuse_client.py - LLM 呼叫追蹤包裝
- OpenClaw 整合 Langfuse trace

## 模型升級 (統帥批准)
- 生產預設: llama3.2:3b → qwen2.5:7b-instruct
- 摘要任務: llama3.2:3b (速度優先)

## 配置更新
- requirements.txt: +langfuse>=2.0.0
- config.py: +LANGFUSE_* 設定
- models.json: 更新 Ollama 模型配置
- K8s: Secret + ConfigMap 更新

## 審查通過
- 模組化檢查 
- 核心測試 31/31 

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 00:32:19 +08:00

50 lines
1.2 KiB
Plaintext

# AWOOOI API Dependencies
# =======================
# CTO-101: BFF Gateway 骨架
# 版本: 2026-03-20
# Core Framework
fastapi>=0.109.0
uvicorn[standard]>=0.27.0
starlette>=0.35.0
# Configuration & Validation
pydantic>=2.5.0
pydantic-settings>=2.1.0
# Async HTTP Client
httpx>=0.26.0
# Database
asyncpg>=0.29.0
redis>=5.0.0
# Logging
structlog>=24.1.0
# SSE Support
sse-starlette>=1.8.0
# ==========================================================================
# OpenTelemetry (SigNoz Integration)
# P0 基礎設施: 可觀測性鐵律
# ==========================================================================
opentelemetry-api>=1.20.0
opentelemetry-sdk>=1.20.0
opentelemetry-exporter-otlp>=1.20.0
opentelemetry-instrumentation-fastapi>=0.41b0
opentelemetry-instrumentation-httpx>=0.41b0
opentelemetry-instrumentation-logging>=0.41b0
# ==========================================================================
# Langfuse (LLMOps Observability)
# Phase 15.1: LLM 呼叫追蹤、成本監控、Prompt 版本管理
# ==========================================================================
langfuse>=2.0.0
# Development
pytest>=7.4.0
pytest-asyncio>=0.23.0
ruff>=0.1.0
sentry-sdk[fastapi]>=2.0.0