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

1 line
2.6 KiB
JSON

{"repo": "cby2005/texun", "files": {"agriculture-platform/backend/src/main/java/com/agriculture/agri/ai/config/DeepSeekConfig.java": {"770186d3953410ae03635fe75163d95f7a416698": {"t": 1785746114.236353, "n": 1012, "h": "cd4b783bf16c2219", "c": "package com.agriculture.agri.ai.config;\n\nimport lombok.Data;\nimport org.springframework.boot.context.properties.ConfigurationProperties;\nimport org.springframework.stereotype.Component;\n\n@Data\n@Component\n@ConfigurationProperties(prefix = \"deepseek\")\npublic class DeepSeekConfig {\n /** DeepSeek API Key,必须在 application.yml 或环境变量中配置 */\n private String apiKey = \"\";\n /** DeepSeek API 基础地址 */\n private String baseUrl = \"https://api.deepseek.com\";\n /** 模型名称 */\n private String model = \"deepseek-chat\";\n /** 超时时间(秒) */\n private int timeout = 60;\n /** 最大输出 token 数 */\n private int maxTokens = 2048;\n /** 温度参数,控制回答的随机性 */\n private double temperature = 0.7;\n\n public boolean isConfigured() {\n return apiKey != null && !apiKey.isBlank();\n }\n\n /** 返回脱敏后的 API Key 用于日志 */\n public String getMaskedApiKey() {\n if (apiKey == null || apiKey.length() <= 8) return \"***\";\n return apiKey.substring(0, 4) + \"****\" + apiKey.substring(apiKey.length() - 4);\n }\n}\n"}, "52c0f68bce4ab388c5ed1d52b821e6ab7c0f3ca8": {"t": 1785759974.2675297, "n": 1012, "h": "cd4b783bf16c2219", "c": "package com.agriculture.agri.ai.config;\n\nimport lombok.Data;\nimport org.springframework.boot.context.properties.ConfigurationProperties;\nimport org.springframework.stereotype.Component;\n\n@Data\n@Component\n@ConfigurationProperties(prefix = \"deepseek\")\npublic class DeepSeekConfig {\n /** DeepSeek API Key,必须在 application.yml 或环境变量中配置 */\n private String apiKey = \"\";\n /** DeepSeek API 基础地址 */\n private String baseUrl = \"https://api.deepseek.com\";\n /** 模型名称 */\n private String model = \"deepseek-chat\";\n /** 超时时间(秒) */\n private int timeout = 60;\n /** 最大输出 token 数 */\n private int maxTokens = 2048;\n /** 温度参数,控制回答的随机性 */\n private double temperature = 0.7;\n\n public boolean isConfigured() {\n return apiKey != null && !apiKey.isBlank();\n }\n\n /** 返回脱敏后的 API Key 用于日志 */\n public String getMaskedApiKey() {\n if (apiKey == null || apiKey.length() <= 8) return \"***\";\n return apiKey.substring(0, 4) + \"****\" + apiKey.substring(apiKey.length() - 4);\n }\n}\n"}}}}