-
Notifications
You must be signed in to change notification settings - Fork 619
Open ai docs #6102
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
Open ai docs #6102
Conversation
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| client = OpenAI( | ||
| base_url="https://nebula-api.thirdweb.com", | ||
| api_key="{{THIRDWEB_SECRET_KEY}}", | ||
| ) | ||
| chat_completion = client.chat.completions.create( | ||
| model="t0", | ||
| messages=[{"role": "user", "content": "Hello Nebula!"}], | ||
| stream=False, | ||
| extra_body={ "context": { "wallet_address": "0x..." }} | ||
| ) |
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.
The Python code mixes tabs and spaces for indentation which violates PEP 8 and will cause runtime errors. Recommend standardizing on 4 spaces per indentation level throughout the code block. The affected lines are the function parameters in the OpenAI() and chat.completions.create() calls.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
size-limit report 📦
|
PR-Codex overview
This PR focuses on updating the
@thirdweb-dev/service-utilspackage, including version bumping, adding a new propertybillingPlanVersion, and enhancing documentation for plugins, particularly for OpenAI integration.Detailed summary
package.jsonfrom0.7.2to0.7.3.billingPlanVersionproperty inmocks.tsandapi.ts.sidebar.tsx.page.mdx.page.mdx.openAI/page.mdx.