-
Notifications
You must be signed in to change notification settings - Fork 10k
[AI Gateway] OpenAI SDK example fix #22907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AI Gateway] OpenAI SDK example fix #22907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🤙
💡 To request another review, post a new comment with "/windsurf-review".
|
Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment. We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally. PR Change SummaryFixed the OpenAI SDK example in the documentation to prevent internal errors caused by URL duplication.
Modified Files
How can I customize these reviews?Check out the Hyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
|
Congratulations @imcfadyen-cf, the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/cmbi7h108257707kwys4dac94 This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
* Update chat-completion.mdx * Fix typo
Summary
Originally reported by a user on the Discord (https://discord.com/channels/595317990191398933/1154819662161395742/1379844865202065631).
The OpenAI SDK automatically adds
/chat/completionsto the end of the URL, and adding it yourself (so it's duplicated) causes the SDK to throw an internal error.This PR just removes
/chat/completionsfrom the SDK example in the docs (it's kept for cURL because it's still required) and adds a comment explaining why the user shouldn't add it themselves.Documentation checklist