diff --git a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties index f2971ef3..c42edcd8 100644 --- a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties +++ b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/main/resources/application.properties @@ -33,8 +33,8 @@ xxl.job.executor.logretentiondays=30 xxl.job.executor.excludedpackage= ### http timeout -spring.http.clients.connect-timeout=5000 -spring.http.clients.read-timeout=30000 +spring.http.clients.connect-timeout=10000 +spring.http.clients.read-timeout=180000 ### spring-ai retry spring.ai.retry.max-attempts=2 diff --git a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java index 3caf5fde..10c7afa0 100644 --- a/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java +++ b/xxl-job-executor-samples/xxl-job-executor-sample-springboot-ai/src/test/java/com/xxl/job/executor/test/ollama/OllamaTest.java @@ -33,8 +33,8 @@ public class OllamaTest { public void chatTest() { String model = "qwen3.5:2b"; - String prompt = "背景说明:你是一个研发工程师,擅长解决技术类问题。"; - String input = "请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"; + String prompt = "你是一个研发工程师,擅长解决技术类问题。"; + String input = "慢SQL问题分析思路"; // build chat-client @@ -60,8 +60,8 @@ public class OllamaTest { public void chatStreamTest() throws InterruptedException { String model = "qwen3.5:2b"; - String prompt = "背景说明:你是一个研发工程师,擅长解决技术类问题。"; - String input = "请写一个java程序,实现一个方法,输入一个字符串,返回字符串的长度。"; + String prompt = "你是一个研发工程师,擅长解决技术类问题。"; + String input = "慢SQL问题分析思路"; // build chat-client