From 0727c3b84decf4c723b66370618da86334183d78 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jun 2026 21:54:39 +0000 Subject: [PATCH 1/2] Bump org.springframework.ai:spring-ai-bom from 2.0.0-M4 to 2.0.0-RC2 Bumps [org.springframework.ai:spring-ai-bom](https://github.com/spring-projects/spring-ai) from 2.0.0-M4 to 2.0.0-RC2. - [Release notes](https://github.com/spring-projects/spring-ai/releases) - [Commits](https://github.com/spring-projects/spring-ai/compare/v2.0.0-M4...v2.0.0-RC2) --- updated-dependencies: - dependency-name: org.springframework.ai:spring-ai-bom dependency-version: 2.0.0-RC2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0940fbf..cb75e95 100644 --- a/pom.xml +++ b/pom.xml @@ -278,7 +278,7 @@ org.springframework.ai spring-ai-bom - 2.0.0-M4 + 2.0.0-RC2 pom import From 02c6c0ecf6af17225e91a8072b076b5a60b69469 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Jun 2026 04:32:27 +0000 Subject: [PATCH 2/2] fix: include /v1 in OpenAI base URL configuration --- src/main/resources/application.properties | 2 +- src/test/java/am/ik/blog/MockConfig.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index c559d40..e8a2194 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -44,7 +44,7 @@ server.forward-headers-strategy=native server.http2.enabled=true server.servlet.session.timeout=3h spring.ai.openai.api-key=dummy -spring.ai.openai.base-url=https://api.openai.com +spring.ai.openai.base-url=https://api.openai.com/v1 spring.ai.openai.chat.options.model=gpt-4o-mini spring.ai.openai.chat.options.temperature=0 spring.ai.retry.max-attempts=1 diff --git a/src/test/java/am/ik/blog/MockConfig.java b/src/test/java/am/ik/blog/MockConfig.java index 26601bd..5b3dcf0 100644 --- a/src/test/java/am/ik/blog/MockConfig.java +++ b/src/test/java/am/ik/blog/MockConfig.java @@ -34,7 +34,7 @@ DynamicPropertyRegistrar mockServerDynamicPropertyRegistrar(MockServer mockServe int port = mockServer.port(); registry.add("blog.github.api-url", () -> "http://127.0.0.1:%d".formatted(port)); registry.add("blog.github.tenants.t1.api-url", () -> "http://127.0.0.1:%d".formatted(port)); - registry.add("spring.ai.openai.base-url", () -> "http://127.0.0.1:%d".formatted(port)); + registry.add("spring.ai.openai.base-url", () -> "http://127.0.0.1:%d/v1".formatted(port)); }; }