feat: 重构配置管理,使用数据库替代环境变量,优化系统配置读取

This commit is contained in:
2026-05-23 15:37:58 +08:00
parent ea95886cfc
commit 92b063c4c4
10 changed files with 249 additions and 129 deletions
+5 -7
View File
@@ -32,8 +32,6 @@ OPENAI_API_BASE=https://api.openai.com/v1
OPENAI_MODEL=gpt-3.5-turbo
MAX_TOKENS=500
TEMPERATURE=0.7
ENABLE_CACHE=true
CACHE_EXPIRATION=86400
```
如需限制访问:
@@ -82,11 +80,11 @@ pnpm dev
参数:
| 参数 | 必填 | 说明 |
| --- | --- | --- |
| `title` | 是 | 题目内容 |
| `type` | 否 | `single``multiple``judgement``completion` |
| `options` | 否 | 选项文本 |
| 参数 | 必填 | 说明 |
| ----------- | ---- | ------------------------------------------------------- |
| `title` | 是 | 题目内容 |
| `type` | 否 | `single``multiple``judgement``completion` |
| `options` | 否 | 选项文本 |
成功: