Skip to content

Commit 5773c93

Browse files
Merge remote-tracking branch 'origin/main' into cursor/port-chat-page-content-to-playground-37db
2 parents d128752 + 8665e8f commit 5773c93

File tree

58 files changed

+1520
-1011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1520
-1011
lines changed

.changeset/slick-cups-joke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Adds TikTok as a new authentication method for In-App and Ecosystem Wallets.

apps/dashboard/src/@/api/team/ecosystems.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export type AuthOption =
1212
| "google"
1313
| "facebook"
1414
| "x"
15+
| "tiktok"
1516
| "discord"
1617
| "farcaster"
1718
| "telegram"

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const authOptions = [
4848
"google",
4949
"facebook",
5050
"x",
51+
"tiktok",
5152
"discord",
5253
"farcaster",
5354
"telegram",

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/wallets/analytics/chart/InAppWalletUsersChartCard.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const authMethodsToPickFrom: InAppWalletAuth[] = [
8686
"discord",
8787
"line",
8888
"x",
89+
"tiktok",
8990
"coinbase",
9091
"farcaster",
9192
"telegram",

apps/playground-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"next": "15.3.5",
2424
"next-themes": "^0.4.6",
2525
"nextjs-toploader": "^1.6.12",
26-
"openapi-types": "^12.1.3",
26+
"openapi-types": "12.1.3",
2727
"posthog-js": "1.256.1",
2828
"prettier": "3.6.2",
2929
"react": "19.1.0",

apps/playground-web/src/app/wallets/sign-in/components/InAppWalletFormGroup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const allInAppWalletLoginMethods: InAppWalletAuth[] = [
1919
"phone",
2020
"line",
2121
"x",
22+
"tiktok",
2223
"facebook",
2324
"apple",
2425
"coinbase",

apps/portal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"nextjs-toploader": "^1.6.12",
2525
"node-html-markdown": "^1.3.0",
2626
"node-html-parser": "^6.1.13",
27+
"openapi-types": "12.1.3",
2728
"posthog-js": "1.256.1",
2829
"prettier": "3.6.2",
2930
"react": "19.1.0",

apps/portal/src/app/ai/chat/EndpointMetadata.tsx

Lines changed: 0 additions & 91 deletions
This file was deleted.

apps/portal/src/app/ai/chat/page.mdx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
1-
import { EndpointMetadata } from "./EndpointMetadata";
2-
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@doc";
1+
import { Tabs, TabsContent, TabsList, TabsTrigger, OpenApiEndpoint } from "@doc";
32

43
# Chat API
54

6-
The thirdweb AI chat API is a standard OpenAI-compatible chat completion API that allows you to interact with the thirdweb AI model, specialized for blockchain interactions.
7-
8-
The thirdweb proprietary model is optimized for blockchain interactions and can:
5+
The thirdweb AI chat API is a standard OpenAI-compatible chat completion API that allows you to interact with the thirdweb AI model, optimized for blockchain interactions.
96

107
- Query real-time data from the blockchain
118
- Analyze transactions
129
- Fetch token balances, prices and metadata
1310
- Prepare any contract call or transaction for signing
14-
- Prepare swaps from any token pair
11+
- Prepare swaps from/to any token pair
1512
- Deploy contracts
1613
- Generate images
17-
- Search the web for information
14+
- Search the web
1815
- And more!
1916

20-
You can use the API with the API directly, or with any OpenAI-compatible client library.
17+
You can use the API with the HTTP API directly, or with any OpenAI-compatible client library.
2118

2219
<Tabs defaultValue="api">
2320
<TabsList>
2421
<TabsTrigger value="api">HTTP API</TabsTrigger>
2522
<TabsTrigger value="openai">OpenAI Client</TabsTrigger>
2623
</TabsList>
2724
<TabsContent value="api">
28-
<EndpointMetadata />
25+
<OpenApiEndpoint path="/ai/chat" method="POST" specUrl="https://api.thirdweb-dev.com/openapi.json" />
2926
</TabsContent>
3027
<TabsContent value="openai">
3128

@@ -50,4 +47,9 @@ chat_completion = client.chat.completions.create(
5047
print(chat_completion)
5148
```
5249
</TabsContent>
53-
</Tabs>
50+
</Tabs>
51+
52+
### Going further
53+
54+
- [Handle streaming responses](/ai/chat/streaming)
55+
- [Full API Reference](https://api.thirdweb-dev.com/reference#tag/ai/post/ai/chat)
File renamed without changes.

0 commit comments

Comments
 (0)