feat: add workbench AI integration
This commit is contained in:
@@ -24,7 +24,7 @@ IM_WORKBENCH_INTERNAL_SECRET=local-workbench-secret \
|
||||
go run ./cmd/workbench
|
||||
```
|
||||
|
||||
默认监听 `:6061`,默认连接本地 `meeting_im` 库和本地 Redis。
|
||||
默认监听 `:6061`,默认连接本地 `workbench` 库和本地 Redis。
|
||||
|
||||
开发联调可在 `configs/workbench.local.json` 打开 `allow_dev_header_auth`,请求头带:
|
||||
|
||||
@@ -92,6 +92,28 @@ go run ./cmd/workbench
|
||||
|
||||
测试环境使用 `configs/workbench.test.json`,Kafka 为明文 PLAINTEXT 直连,不配置 SASL/TLS。
|
||||
|
||||
## AI / DeepSeek 本地配置
|
||||
|
||||
工作台 AI 首版接入 DeepSeek。默认配置已在 `configs/workbench.local.json` 中给出,实际调用前需要配置 API Key:
|
||||
|
||||
```bash
|
||||
DEEPSEEK_API_KEY=sk-xxx \
|
||||
IM_WORKBENCH_CONFIG=configs/workbench.local.json \
|
||||
go run ./cmd/workbench
|
||||
```
|
||||
|
||||
可选参数:
|
||||
|
||||
```bash
|
||||
DEEPSEEK_BASE_URL=https://api.deepseek.com
|
||||
DEEPSEEK_DEFAULT_MODEL=deepseek-flash
|
||||
DEEPSEEK_COMPLEX_MODEL=deepseek-v4-pro
|
||||
DEEPSEEK_TIMEOUT_MS=60000
|
||||
DEEPSEEK_MAX_RETRIES=2
|
||||
DEEPSEEK_TEMPERATURE=0.2
|
||||
DEEPSEEK_MAX_OUTPUT_TOKENS=4096
|
||||
```
|
||||
|
||||
事件体字段:
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user