1811872455@163.com 1 ヶ月 前
コミット
c7e2f82b49

+ 17 - 126
.idea/workspace.xml

@@ -4,128 +4,10 @@
     <option name="autoReloadType" value="SELECTIVE" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="2dc641fc-1465-479e-874d-97069c194ded" name="Changes" comment="构建Docker镜像">
-      <change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/.idea/encodings.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
+    <list default="true" id="2dc641fc-1465-479e-874d-97069c194ded" name="Changes" comment="maven">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/storlead-ai-api/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/storlead-ai-api/pom.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/META-INF/spring-configuration-metadata.json" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/application-dev.yml" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/application-prod.yml" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/application-test.yml" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/application-uat.yml" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/application.yml" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/AiPlatformApplication.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/config/properties/OpenAiProperties.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/config/properties/SparkAiProperties.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/config/properties/StorleadAiProperties.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/controller/AiChatController.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/controller/WebSocketEndpointController.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/core/AiProviderType.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/core/AiService.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/core/ChatRequest$Builder.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/core/ChatRequest.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/core/ChatResponse$Builder.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/core/ChatResponse.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/exception/AiServiceException.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/factory/AiServiceFactory.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/factory/AiServiceFactoryManager.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/factory/impl/OpenAiServiceFactory.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/factory/impl/SparkAiServiceFactory.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/factory/impl/StorleadAiServiceFactory.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/service/AiChatService.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/service/WebSocketService.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/service/impl/OpenAiService.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/service/impl/SparkAiService.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/service/impl/StorleadAiService.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/util/HttpClientUtil.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/websocket/AiChatWebSocketHandler.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/websocket/MessageType.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/websocket/WebSocketConfig.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/websocket/WebSocketConnectionManager.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/websocket/WebSocketMessage.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/websocket/WebSocketSessionManager$SessionInfo.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-ai-api/target/classes/com/storlead/ai/websocket/WebSocketSessionManager.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-dependencies/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/storlead-dependencies/pom.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CacheConstant.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CodeGenerateInterface.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/CommonConstant.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DSConstants.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DataBaseConstant.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/DefContants.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/LongToStringSerializer.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/SystemConstant.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/constant/UserCacheKeyConstants.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/enums/DataTypeEnum.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/property/YamlPropertyResourceFactory.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/MatchTypeEnum.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/QueryCondition.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/system/query/QueryRuleEnum.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/ConvertUtils.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/DateUtil.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/DateUtils.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/HtmlUtils.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/LocalDateUtils.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/MD5Util.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RandomCodeUtil.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RandomGenerateHelper.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RsaUtils$RsaKeyPair.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/RsaUtils.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SnowFlake.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SpringContextUtils.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SqlInjectionUtil.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/StringUtil.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/SystemUtils.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/WordUtilsTest.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/ZipUtil.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/encryptor/AccessKeyEncryptor.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/CodeGenerate.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/DefaultIdentifierGenerator.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/IdWorker.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/IdentifierGenerator.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/util/generate/Sequence.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NeContains.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NeContainsValidator.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NotContains.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/validation/NotContainsValidator.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/vo/FeignResult.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-common/target/classes/com/storlead/framework/common/vo/UserVo.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-core/target/classes/com/storlead/framework/core/Page.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/Menu.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/MenuApi.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-core/target/classes/com/storlead/framework/core/annotation/PerDataAccess.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-core/target/classes/com/storlead/framework/core/context/Context.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-core/target/classes/com/storlead/framework/core/context/IContext.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/storlead-framework/storlead-web/pom.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/assemble/QueryBaseDTO.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/assemble/Result.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/config/Swagger2Config.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/enums/ErrorMsgCode.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/enums/ResultCode.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/exception/DaoException.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/exception/MsgCodeSupport.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/exception/TopException.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/exception/WebException.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/filter/AllRequestFilter.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/filter/AuthRequestFilter.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/filter/CodeRouteMapping.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/filter/RoutingRequestFilter.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/interceptor/AllRequestInterceptor.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/message/MsgCode.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/message/PageResp.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/message/ServiceMsgCode.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/message/TopMsgCode.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/message/WebResp.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/process/ApiResultHandler.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/process/WebMvcConfigurer$1.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/process/WebMvcConfigurer.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/wrapper/JsonRequestWrapper$1.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/classes/com/storlead/framework/web/wrapper/JsonRequestWrapper.class" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/maven-archiver/pom.properties" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/storlead-framework/storlead-web/target/xpert-web-2.7.0-jdk11-SNAPSHOT.jar" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/storlead-ai-api/src/main/java/com/storlead/ai/service/impl/SparkAiService.java" beforeDir="false" afterPath="$PROJECT_DIR$/storlead-ai-api/src/main/java/com/storlead/ai/service/impl/SparkAiService.java" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -177,10 +59,10 @@
     "node.js.detected.package.tslint": "true",
     "node.js.selected.package.eslint": "(autodetect)",
     "node.js.selected.package.tslint": "(autodetect)",
-    "project.structure.last.edited": "Modules",
+    "project.structure.last.edited": "Project",
     "project.structure.proportion": "0.0",
-    "project.structure.side.proportion": "0.0",
-    "settings.editor.selected.configurable": "MavenSettings",
+    "project.structure.side.proportion": "0.2",
+    "settings.editor.selected.configurable": "profiler.jvm",
     "spring.configuration.checksum": "1259999022d84b755f5d094d936c15a0",
     "vue.rearranger.settings.migration": "true"
   }
@@ -235,7 +117,7 @@
       <workItem from="1758780969521" duration="11096000" />
       <workItem from="1758849538252" duration="14257000" />
       <workItem from="1759021657878" duration="17861000" />
-      <workItem from="1759109339436" duration="18255000" />
+      <workItem from="1759109339436" duration="18805000" />
     </task>
     <task id="LOCAL-00001" summary="ai项目">
       <option name="closed" value="true" />
@@ -277,7 +159,15 @@
       <option name="project" value="LOCAL" />
       <updated>1759131898399</updated>
     </task>
-    <option name="localTasksCounter" value="6" />
+    <task id="LOCAL-00006" summary="maven">
+      <option name="closed" value="true" />
+      <created>1759134511783</created>
+      <option name="number" value="00006" />
+      <option name="presentableId" value="LOCAL-00006" />
+      <option name="project" value="LOCAL" />
+      <updated>1759134511783</updated>
+    </task>
+    <option name="localTasksCounter" value="7" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
@@ -323,7 +213,8 @@
     <MESSAGE value="ai项目" />
     <MESSAGE value="集成星火和jenkinsfile" />
     <MESSAGE value="构建Docker镜像" />
-    <option name="LAST_COMMIT_MESSAGE" value="构建Docker镜像" />
+    <MESSAGE value="maven" />
+    <option name="LAST_COMMIT_MESSAGE" value="maven" />
   </component>
   <component name="XDebuggerManager">
     <breakpoint-manager>

+ 2 - 2
storlead-ai-api/pom.xml

@@ -211,8 +211,8 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
-                    <source>11</source>
-                    <target>11</target>
+                    <source>17</source>
+                    <target>17</target>
                     <encoding>UTF-8</encoding>
                 </configuration>
             </plugin>

+ 0 - 38
storlead-ai-api/src/main/java/com/storlead/ai/service/impl/SparkAiService.java

@@ -9,7 +9,6 @@ import com.storlead.ai.core.ChatRequest;
 import com.storlead.ai.core.ChatResponse;
 import com.storlead.ai.exception.AiServiceException;
 import com.storlead.ai.util.HttpClientUtil;
-import org.apache.hc.core5.net.URIBuilder;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -204,43 +203,6 @@ public class SparkAiService implements AiService {
         return requestBody;
     }
 
-    public static String getAuthUrl(String hostUrl, String apiKey, String apiSecret) throws Exception {
-        URL url = new URL(hostUrl);
-        // 时间
-        SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
-        format.setTimeZone(TimeZone.getTimeZone("GMT"));
-        String date = format.format(new Date());
-        // 拼接
-        String preStr = "host: " + url.getHost() + "\n" +
-                "date: " + date + "\n" +
-                "GET " + url.getPath() + " HTTP/1.1";
-        // System.err.println(preStr);
-        // SHA256加密
-        Mac mac = Mac.getInstance("hmacsha256");
-        SecretKeySpec spec = new SecretKeySpec(apiSecret.getBytes(StandardCharsets.UTF_8), "hmacsha256");
-        mac.init(spec);
-
-        byte[] hexDigits = mac.doFinal(preStr.getBytes(StandardCharsets.UTF_8));
-        // Base64加密
-        String sha = Base64.getEncoder().encodeToString(hexDigits);
-        // System.err.println(sha);
-        // 拼接
-        String authorization = String.format("api_key=\"%s\", algorithm=\"%s\", headers=\"%s\", signature=\"%s\"", apiKey, "hmac-sha256", "host date request-line", sha);
-        // 拼接地址
-        URI uri = new URIBuilder()
-                .setScheme("https")
-                .setHost(url.getHost())
-                .setPath(url.getPath())
-                .addParameter("authorization", Base64.getEncoder().encodeToString(authorization.getBytes(StandardCharsets.UTF_8)))
-                .addParameter("date", date)
-                .addParameter("host", url.getHost())
-                .build();
-
-        String finalUrl = uri.toString();
-
-        return finalUrl;
-    }
-
     /**
      * 构建消息列表
      */