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

@@ -1,10 +1,13 @@
package com.yolo.keyborad.common;
import lombok.Getter;
/**
* 错误码
*
* @author yupi
*/
@Getter
public enum ErrorCode {
SUCCESS(0, "ok"),
@@ -31,12 +34,4 @@ public enum ErrorCode {
this.message = message;
}
public int getCode() {
return code;
}
public String getMessage() {
return message;
}
}