refactor(common): 简化 ErrorCode 枚举并升级模型配置

- 使用 Lombok @Getter 移除手写 getter,精简 5 行代码
- 将 embedding 模型从 0.6B 升级为 8B 提升效果
- 切换 OpenRouter 网关地址到 Cloudflare AI Gateway 加速访问
This commit is contained in:
2025-12-01 20:36:58 +08:00
parent ef7dd5b370
commit af79ca97d4
3 changed files with 5 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ spring:
ai:
openai:
api-key: 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
base-url: https://openrouter.ai/api/
base-url: https://gateway.ai.cloudflare.com/v1/b632a61caa85401f63c9b32eef3a74c8/aigetway/openrouter
chat:
options:
model: google/gemini-2.5-flash-lite