Files
demo2-qwen/README.md

50 lines
767 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 接口地址 |