# space-aiagent **Repository Path**: 910922164/space-aiagent ## Basic Information - **Project Name**: space-aiagent - **Description**: No description available - **Primary Language**: Unknown - **License**: Unlicense - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-06 - **Last Updated**: 2025-07-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 部署说明 ## 1. Doker 部署(推荐,并已验证) - 可环境隔离 ### 前提条件 - 安装Docker和Docker Compose - 准备好LLM API密钥(如OpenAI API密钥) ### 快速部署步骤 1. **准备环境变量** - 编辑`docker-compose.yml`文件,在`LLM_API_KEY` 填入您的API密钥 2. **构建并启动服务** ```bash # 构建镜像 docker-compose build --no-cache # 或者(macOS) docker compose build --no-cache # 启动服务 docker-compose up -d # 或者(macOS) docker compose up -d ``` ## 2. 直接部署 ### 准备 在运行构建命令前,您可能需要安装 build 包: ```bash pip install build ``` ### 构建 然后运行构建命令: ```bash python -m build ``` 构建完成后,将在项目根目录下的 `dist/` 文件夹中找到两种类型的分发包: - tar.gz 包: 这是一个可压缩的包,适用于大多数Linux发行版。 - whl 包: 这是一个适用于Python的二进制包,可在Windows、macOS和Linux上运行。 安装包: 在生产环境中,可以使用以下命令安装构建好的包: ```bash pip install dist/space-agent-0.1.0.whl ``` ### 配置 安装后,.env.prod 文件将被复制到安装目录的 config/prod/ 下 您可以根据需要修改此文件中的配置,如LLM API密钥等