Skip to content

Commit 71af3e7

Browse files
author
Happy Somani
committed
fix: set default timeout higher for folks that are using relatively slower machines
1 parent 1515f81 commit 71af3e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/app/playerservicejava/config/ChatClientConfiguration.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public RestTemplate restTemplate() {
2323

2424
@Bean
2525
public OllamaAPI ollamaAPI() {
26-
return new OllamaAPI(OLLAMA_HOST);
26+
OllamaAPI api = new OllamaAPI(OLLAMA_HOST);
27+
api.setRequestTimeoutSeconds(120);
28+
return api;
2729
}
2830

2931
}

0 commit comments

Comments
 (0)