封装fastAPI openAI接口规范

This commit is contained in:
jeremygan2021
2025-11-04 23:57:37 +08:00
parent a75989c3e6
commit 8a9aef87aa
15 changed files with 904 additions and 7 deletions

25
docker-compose.yml Normal file
View File

@@ -0,0 +1,25 @@
version: '3.8'
services:
lang-agent-api:
build: .
container_name: lang-agent-api
ports:
- "8488:8488"
env_file:
- ./.env
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
- RAG_FOLDER_PATH=/app/assets/xiaozhan_emb
volumes:
- ./configs:/app/configs
- ./scripts:/app/scripts
- ./assets:/app/assets
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8488/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s