Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Jan 29, 2025

PR-Codex overview

This PR focuses on updating the @thirdweb-dev/service-utils package, including version bumping, adding a new property billingPlanVersion, and enhancing documentation for plugins, particularly for OpenAI integration.

Detailed summary

  • Updated version in package.json from 0.7.2 to 0.7.3.
  • Added billingPlanVersion property in mocks.ts and api.ts.
  • Changed sidebar name from "Plugins" to "Plugins & Integrations" in sidebar.tsx.
  • Added OpenAI and Eliza links in the plugins section of page.mdx.
  • Updated plugin description in page.mdx.
  • Added OpenAI API usage examples in openAI/page.mdx.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@jnsdls jnsdls requested review from a team as code owners January 29, 2025 19:32
@changeset-bot
Copy link

changeset-bot bot commented Jan 29, 2025

⚠️ No Changeset found

Latest commit: 2fcdf00

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ❌ Failed (Inspect) Jan 29, 2025 7:32pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
thirdweb_playground ⬜️ Skipped (Inspect) Jan 29, 2025 7:32pm
thirdweb-www ⬜️ Skipped (Inspect) Jan 29, 2025 7:32pm
wallet-ui ⬜️ Skipped (Inspect) Jan 29, 2025 7:32pm

@github-actions github-actions bot added Portal Involves changes to the Portal (docs) codebase. packages labels Jan 29, 2025
@jnsdls jnsdls merged commit 2b16f90 into main Jan 29, 2025
43 of 47 checks passed
@jnsdls jnsdls deleted the openAI-docs branch January 29, 2025 19:33
Comment on lines +10 to +19
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..." }}
)
Copy link
Contributor

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.

@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 29, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.55 KB (0%) 932 ms (0%) 575 ms (-1.59% 🔽) 1.6 s
thirdweb (cjs) 122.35 KB (0%) 2.5 s (0%) 1.2 s (-15.09% 🔽) 3.7 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 238 ms (+345.65% 🔺) 349 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 21 ms (+27.62% 🔺) 31 ms
thirdweb/react (minimal + tree-shaking) 19.27 KB (0%) 386 ms (0%) 194 ms (+11.06% 🔺) 579 ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants