# 聊天机器人后端服务 **Repository Path**: smash-the-fallen-brother/backend-service-for-chatbots ## Basic Information - **Project Name**: 聊天机器人后端服务 - **Description**: 通过fast apI 调用deep seek api接口,实现大模型接入实现对话功能。项目结构清晰可扩展性强,可以随时通过function calling底层进行工具扩展,实现ai调用工具自动化。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-01 - **Last Updated**: 2025-07-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: FastAPI, AI ## README # DeepSeek Chatbot Backend A FastAPI-based backend service for DeepSeek Chatbot application. ## Features - User authentication (register/login) - Conversation history management - Integration with DeepSeek API - RESTful API endpoints ## Prerequisites - Python 3.9+ - MySQL - Docker (optional) ## Installation 1. Clone the repository 2. Create and activate virtual environment: ```bash python -m venv venv source venv/bin/activate # Linux/MacOS venv\Scripts\activate # Windows ``` 3. Install dependencies: ```bash pip install -r requirements.txt ``` 4. Copy `.env.example` to `.env` and configure your settings 5. Run database migrations: ```bash alembic upgrade head ``` ## Running the Application ```bash uvicorn app.main:app --reload ``` Or using Docker: ```bash docker build -t deepseek-chatbot . docker run -p 8000:8000 deepseek-chatbot ``` ## API Documentation After starting the server, visit: - Swagger UI: http://localhost:8000/docs - ReDoc: http://localhost:8000/redoc