35 lines
622 B
Plaintext
35 lines
622 B
Plaintext
# FastAPI版本的额外依赖
|
||
# 在原有requirements.txt基础上添加以下依赖
|
||
|
||
# FastAPI核心
|
||
fastapi>=0.104.0
|
||
uvicorn[standard]>=0.24.0
|
||
|
||
# 数据验证和序列化
|
||
pydantic>=2.5.0
|
||
|
||
# CORS支持
|
||
python-multipart>=0.0.6
|
||
|
||
# 异步支持
|
||
aiofiles>=23.0.0
|
||
|
||
# 可选:性能优化
|
||
orjson>=3.9.0 # 更快的JSON序列化
|
||
|
||
# 可选:生产部署
|
||
gunicorn>=21.0.0 # WSGI服务器(如果需要)
|
||
|
||
# 原有依赖(从requirements.txt复制)
|
||
Flask>=2.0.0
|
||
Werkzeug>=2.0.0
|
||
requests>=2.25.0
|
||
PyYAML>=6.0
|
||
jsonschema>=4.0.0
|
||
pydantic>=1.8.0
|
||
openai>=0.27.0
|
||
Flask-Cors>=4.0.0
|
||
reportlab>=3.6.0
|
||
Pillow>=8.0.0
|
||
urllib3>=1.26.0
|