Files
awoooi/apps/api/requirements.txt
OG T 2aeec34735
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
E2E Health Check / e2e-health (push) Has been cancelled
CD Pipeline (Dev) / build-and-deploy-dev (push) Successful in 2m40s
fix(llmops): 鎖定 langfuse SDK v2.x (避免 v4.x OTLP 不相容)
問題: langfuse>=2.0.0 安裝了 v4.0.5,該版本移除 client.trace() 改用 OTLP
根因: Langfuse server v2.95.11 的 OTLP endpoint (/api/public/otel) 返回 404
     但舊版 /api/public/ingestion endpoint 正常 (HTTP 207)
修復: 鎖定 langfuse>=2.0.0,<4.0.0,保留 client.trace() API 相容性

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 22:49:00 +08:00

51 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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-01 Claude Code: 鎖定 v2.x — v4.x 改用 OTLP與 langfuse_client.py 的 client.trace() 不相容
langfuse>=2.0.0,<4.0.0
# Development
pytest>=7.4.0
pytest-asyncio>=0.23.0
ruff>=0.1.0
sentry-sdk[fastapi]>=2.0.0