排查確認:v3.x 也無 client.trace(),langfuse_client.py 依賴此 API。 鎖定 <3.0.0 確保安裝 v2.60.10 (v2 最新),trace/generation/score 均可用。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
51 lines
1.3 KiB
Plaintext
51 lines
1.3 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 版本管理
|
||
# ==========================================================================
|
||
# 2026-04-02 Claude Code: 鎖定 v2.60.x — v3.x/v4.x 移除 client.trace() API,與 langfuse_client.py 不相容
|
||
langfuse>=2.0.0,<3.0.0
|
||
|
||
# Development
|
||
pytest>=7.4.0
|
||
pytest-asyncio>=0.23.0
|
||
ruff>=0.1.0
|
||
sentry-sdk[fastapi]>=2.0.0
|