Forçage HTTP/1.1 pour la partie python et passage en v0.6.11
Some checks failed
E2E Tests / e2e (push) Failing after 20s
Build & Push Images / build (brain) (push) Successful in 48s
Build & Push Images / build (core) (push) Successful in 1m17s
Build & Push Images / build (web) (push) Successful in 1m27s

This commit is contained in:
2026-04-26 01:55:02 +02:00
parent dfe05cf2d2
commit 73a9d15786
5 changed files with 10 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
<groupId>com.loremind</groupId>
<artifactId>loremind-core</artifactId>
<version>0.6.10</version>
<version>0.6.11</version>
<name>LoreMind Core</name>
<description>Backend Core - Architecture Hexagonale</description>

View File

@@ -91,7 +91,12 @@ public class SettingsController {
public ResponseEntity<StreamingResponseBody> pullOllamaModel(@RequestBody Map<String, Object> body) {
guardDemoMode();
StreamingResponseBody stream = output -> {
// Force HTTP/1.1 : le HttpClient JDK essaie HTTP/2 par defaut,
// mais uvicorn (Brain) ne supporte que HTTP/1.1 et rejette la
// tentative d'upgrade ("Unsupported upgrade request") -> la
// requete n'arrive jamais a notre endpoint Python.
HttpClient http = HttpClient.newBuilder()
.version(HttpClient.Version.HTTP_1_1)
.connectTimeout(Duration.ofSeconds(10))
.build();
// Le RestTemplate auto-injecte X-Internal-Secret via un interceptor,