add readme and docker compose
This commit is contained in:
49
README.md
Normal file
49
README.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# Bosch AI Agent
|
||||
|
||||
## 启动方式
|
||||
|
||||
### 方式一:Docker Compose(推荐)
|
||||
|
||||
确保已登录镜像仓库:
|
||||
|
||||
```bash
|
||||
docker login dcr-by1jwyxk44.71826370.xyz -u whlaoding
|
||||
```
|
||||
|
||||
启动服务:
|
||||
|
||||
```bash
|
||||
docker compose up
|
||||
```
|
||||
|
||||
服务启动后访问:http://localhost:8000
|
||||
|
||||
> 停止服务:`docker compose down`
|
||||
|
||||
---
|
||||
|
||||
### 方式二:本地直接运行
|
||||
|
||||
```bash
|
||||
./run.sh
|
||||
```
|
||||
|
||||
> 需要本地已安装 Python 3.11+,首次运行会自动创建虚拟环境并安装依赖。
|
||||
|
||||
服务启动后访问:http://localhost:8000
|
||||
|
||||
---
|
||||
|
||||
## 环境变量
|
||||
|
||||
复制 `.env-example` 为 `.env` 并填写配置:
|
||||
|
||||
```bash
|
||||
cp .env-example .env
|
||||
```
|
||||
|
||||
| 变量 | 说明 |
|
||||
|------|------|
|
||||
| `API_KEY` | AI 接口密钥 |
|
||||
| `MODEL` | 使用的模型名称 |
|
||||
| `BASE_URL` | AI 接口地址 |
|
||||
Reference in New Issue
Block a user