Skip to content

Conversation

@HarrisonC118
Copy link

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.

Thank you for taking time to contribute this pull request!
You might have already read the contributor guide, but as a reminder, please make sure to:

  • Add a Signed-off-by line to each commit (git commit -s) per the DCO
  • Rebase your changes on the latest main branch and squash your commits
  • Add/Update unit tests as needed
  • Run a build and make sure all tests pass prior to submission

For more details, please check the contributor guide.
Thank you upfront!

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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant