From ec0fd3f0cfd070af0072e520d9c3e0936ccffacc Mon Sep 17 00:00:00 2001 From: Harrison <59154555+HarrisonC118@users.noreply.github.com> Date: Fri, 12 Dec 2025 16:52:25 +0800 Subject: [PATCH] docs: Remove redundant /v1 suffix from OpenAI base-url examples Removed the '/v1' suffix from the `spring.ai.openai.base-url` examples in the OpenAI Chat documentation. The `OpenAiApi` already includes `/v1` in the default `completionsPath` (`/v1/chat/completions`). Including it in the base-url causes a double `/v1/v1` path in the final request URL. This change aligns the documentation with the actual client behavior. Signed-off-by: Harrison <59154555+HarrisonC118@users.noreply.github.com> --- .../antora/modules/ROOT/pages/api/chat/openai-chat.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc index 7977fcd3730..05dbc3fe2ee 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc @@ -784,7 +784,7 @@ Each property under `spring.ai.openai.chat.options.extra-body` becomes a top-lev [source,properties] ---- -spring.ai.openai.base-url=http://localhost:8000/v1 +spring.ai.openai.base-url=http://localhost:8000 spring.ai.openai.chat.options.model=meta-llama/Llama-3-8B-Instruct spring.ai.openai.chat.options.temperature=0.7 spring.ai.openai.chat.options.extra-body.top_k=50 @@ -831,7 +831,7 @@ When running vLLM with a Llama model, you might want to use sampling parameters [source,properties] ---- -spring.ai.openai.base-url=http://localhost:8000/v1 +spring.ai.openai.base-url=http://localhost:8000 spring.ai.openai.chat.options.model=meta-llama/Llama-3-70B-Instruct spring.ai.openai.chat.options.extra-body.top_k=40 spring.ai.openai.chat.options.extra-body.top_p=0.95 @@ -998,7 +998,7 @@ vllm serve deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B \ [source,properties] ---- -spring.ai.openai.base-url=http://localhost:8000/v1 +spring.ai.openai.base-url=http://localhost:8000 spring.ai.openai.chat.options.model=deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B ----