Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/bersulang_ai-meeting.json
T

1 line
4.1 KiB
JSON

{"repo": "bersulang/ai-meeting", "files": {"admin/src/main/java/com/hewei/hzyjy/xunzhi/ai/enums/AiPropritiesType.java": {"32846f236d51125a145dad707505ac1808727127": {"t": 1785746111.8028278, "n": 1708, "h": "6298d0a605609a6d", "c": "package com.hewei.hzyjy.xunzhi.ai.enums;\n\nimport lombok.Getter;\n\n/**\n * AI模型类型枚举\n * 用于定义支持的AI模型及其默认配置\n */\n@Getter\npublic enum AiPropritiesType {\n\n OPENAI(1, \"openai\", \"OpenAI\", \"https://api.openai.com/v1\"),\n DOUBAO(2, \"doubao\", \"豆包\", \"https://ark.cn-beijing.volces.com/api/v3\"),\n SPARK(3, \"spark\", \"讯飞星火\", \"https://spark-api-open.xf-yun.com/v1\"),\n DEEPSEEK(4, \"deepseek\", \"DeepSeek\", \"https://api.deepseek.com\"),\n OTHER(99, \"other\", \"其他\", \"\");\n\n private final Integer code;\n private final String type;\n private final String desc;\n private final String defaultBaseUrl;\n\n AiPropritiesType(Integer code, String type, String desc, String defaultBaseUrl) {\n this.code = code;\n this.type = type;\n this.desc = desc;\n this.defaultBaseUrl = defaultBaseUrl;\n }\n \n /**\n * 根据code获取类型\n */\n public static AiPropritiesType getByCode(Integer code) {\n for (AiPropritiesType type : AiPropritiesType.values()) {\n if (type.getCode().equals(code)) {\n return type;\n }\n }\n return OTHER;\n }\n \n /**\n * 根据type字符串获取类型\n */\n public static AiPropritiesType getByType(String type) {\n if (type == null) {\n return OTHER;\n }\n for (AiPropritiesType t : AiPropritiesType.values()) {\n if (t.getType().equalsIgnoreCase(type)) {\n return t;\n }\n }\n // 兼容旧数据\n if (\"generalv3.5\".equalsIgnoreCase(type)) {\n return SPARK;\n }\n return OTHER;\n }\n\n /**\n * 检查是否支持该类型\n */\n public static boolean isSupported(String type) {\n return getByType(type) != OTHER;\n }\n}\n"}, "2f687a3ecbac81fda2debb07f9d0fdb9fa47f0a9": {"t": 1785759956.377788, "n": 1708, "h": "6298d0a605609a6d", "c": "package com.hewei.hzyjy.xunzhi.ai.enums;\n\nimport lombok.Getter;\n\n/**\n * AI模型类型枚举\n * 用于定义支持的AI模型及其默认配置\n */\n@Getter\npublic enum AiPropritiesType {\n\n OPENAI(1, \"openai\", \"OpenAI\", \"https://api.openai.com/v1\"),\n DOUBAO(2, \"doubao\", \"豆包\", \"https://ark.cn-beijing.volces.com/api/v3\"),\n SPARK(3, \"spark\", \"讯飞星火\", \"https://spark-api-open.xf-yun.com/v1\"),\n DEEPSEEK(4, \"deepseek\", \"DeepSeek\", \"https://api.deepseek.com\"),\n OTHER(99, \"other\", \"其他\", \"\");\n\n private final Integer code;\n private final String type;\n private final String desc;\n private final String defaultBaseUrl;\n\n AiPropritiesType(Integer code, String type, String desc, String defaultBaseUrl) {\n this.code = code;\n this.type = type;\n this.desc = desc;\n this.defaultBaseUrl = defaultBaseUrl;\n }\n \n /**\n * 根据code获取类型\n */\n public static AiPropritiesType getByCode(Integer code) {\n for (AiPropritiesType type : AiPropritiesType.values()) {\n if (type.getCode().equals(code)) {\n return type;\n }\n }\n return OTHER;\n }\n \n /**\n * 根据type字符串获取类型\n */\n public static AiPropritiesType getByType(String type) {\n if (type == null) {\n return OTHER;\n }\n for (AiPropritiesType t : AiPropritiesType.values()) {\n if (t.getType().equalsIgnoreCase(type)) {\n return t;\n }\n }\n // 兼容旧数据\n if (\"generalv3.5\".equalsIgnoreCase(type)) {\n return SPARK;\n }\n return OTHER;\n }\n\n /**\n * 检查是否支持该类型\n */\n public static boolean isSupported(String type) {\n return getByType(type) != OTHER;\n }\n}\n"}}}}