Skip to content

Commit c76fe10

Browse files
started portal docs (#8410)
Co-authored-by: 0xFirekeeper <[email protected]>
1 parent c63ef1c commit c76fe10

File tree

106 files changed

+940
-6476
lines changed

Some content is hidden

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

106 files changed

+940
-6476
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 4 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ const links = [
3131
href: "/wallets",
3232
name: "Wallets",
3333
},
34-
{
35-
href: "/transactions",
36-
name: "Transactions",
37-
},
38-
{
39-
href: "/contracts",
40-
name: "Contracts",
41-
},
4234
{
4335
href: "/x402",
4436
name: "x402",
@@ -52,31 +44,12 @@ const links = [
5244
name: "Tokens",
5345
},
5446
{
55-
href: "/reference",
56-
name: "API Reference",
57-
},
58-
];
59-
60-
const toolLinks = [
61-
{
62-
href: "https://thirdweb.com/chainlist",
63-
name: "Chain List",
64-
},
65-
{
66-
href: "https://thirdweb.com/tools/wei-converter",
67-
name: "Wei Converter",
68-
},
69-
{
70-
href: "https://thirdweb.com/tools/hex-converter",
71-
name: "Hex Converter",
72-
},
73-
{
74-
href: "/account/api-keys",
75-
name: "API Keys",
47+
href: "/ai/chat",
48+
name: "AI",
7649
},
7750
{
78-
href: "/cli",
79-
name: "CLI",
51+
href: "/reference",
52+
name: "API Reference",
8053
},
8154
];
8255

@@ -122,44 +95,6 @@ export const connectLinks: Array<{
12295
},
12396
] as const;
12497

125-
const apisLinks = [
126-
{
127-
href: "https://api.thirdweb.com/reference",
128-
name: "HTTP API",
129-
},
130-
{
131-
href: "/insight",
132-
name: "Insight",
133-
},
134-
{
135-
href: "https://engine.thirdweb.com/reference#tag/write",
136-
name: "Transactions",
137-
},
138-
{
139-
href: "https://bridge.thirdweb.com/reference",
140-
name: "Payments",
141-
},
142-
{
143-
href: "/bundler",
144-
name: "Bundler",
145-
},
146-
];
147-
148-
const aiLinks = [
149-
{
150-
href: "/ai/chat",
151-
name: "Blockchain LLM",
152-
},
153-
{
154-
href: "/ai/mcp",
155-
name: "MCP",
156-
},
157-
{
158-
href: "/ai/llm-txt",
159-
name: "LLMs.txt",
160-
},
161-
];
162-
16398
const sdkLinks = [
16499
{
165100
href: "/references/typescript/v5",
@@ -300,27 +235,11 @@ export function Header() {
300235
</nav>
301236

302237
<div className="flex items-center">
303-
<DropdownLinks
304-
category="AI"
305-
links={aiLinks}
306-
onLinkClick={() => setShowBurgerMenu(false)}
307-
/>
308238
<DropdownLinks
309239
category="SDKs"
310240
links={sdkLinks}
311241
onLinkClick={() => setShowBurgerMenu(false)}
312242
/>
313-
<DropdownLinks
314-
category="APIs"
315-
links={apisLinks}
316-
onLinkClick={() => setShowBurgerMenu(false)}
317-
/>
318-
319-
<DropdownLinks
320-
category="Tools"
321-
links={toolLinks}
322-
onLinkClick={() => setShowBurgerMenu(false)}
323-
/>
324243
<DropdownLinks
325244
category="Support"
326245
links={supportLinks}
@@ -355,18 +274,6 @@ export function Header() {
355274
))}
356275
</div>
357276

358-
<div className="flex flex-col gap-4">
359-
<h3 className="font-semibold text-lg">AI</h3>
360-
{aiLinks.map((link) => (
361-
<NavLink
362-
href={link.href}
363-
key={link.name}
364-
name={link.name}
365-
onClick={() => setShowBurgerMenu(false)}
366-
/>
367-
))}
368-
</div>
369-
370277
<div className="flex flex-col gap-4">
371278
<h3 className="font-semibold text-lg">SDKs</h3>
372279
{sdkLinks.map((link) => (
@@ -380,18 +287,6 @@ export function Header() {
380287
))}
381288
</div>
382289

383-
<div className="flex flex-col gap-4">
384-
<h3 className="font-semibold text-lg">APIs</h3>
385-
{apisLinks.map((link) => (
386-
<NavLink
387-
href={link.href}
388-
key={link.name}
389-
name={link.name}
390-
onClick={() => setShowBurgerMenu(false)}
391-
/>
392-
))}
393-
</div>
394-
395290
<div className="flex flex-col gap-4">
396291
<h3 className="font-semibold text-lg">Support</h3>
397292
{supportLinks.map((link) => (
@@ -409,18 +304,6 @@ export function Header() {
409304
name="Changelog"
410305
onClick={() => setShowBurgerMenu(false)}
411306
/>
412-
413-
<div className="flex flex-col gap-4">
414-
<h3 className="font-semibold text-lg">Tools</h3>
415-
{toolLinks.map((link) => (
416-
<NavLink
417-
href={link.href}
418-
key={link.name}
419-
name={link.name}
420-
onClick={() => setShowBurgerMenu(false)}
421-
/>
422-
))}
423-
</div>
424307
</div>
425308
</div>
426309
)}

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ import { Tabs, TabsContent, TabsList, TabsTrigger, OpenApiEndpoint } from "@doc"
22

33
# Blockchain LLM
44

5-
The thirdweb API exposes a standard OpenAI-compatible chat completion API that allows you to interact with the thirdweb AI model, optimized for blockchain interactions.
5+
The thirdweb API provides an OpenAI-compatible chat completion interface optimized for blockchain interactions.
66

7-
- Query real-time data from the blockchain
7+
You can use it to:
8+
9+
- Query on-chain data
810
- Analyze transactions
9-
- Fetch token balances, prices and metadata
10-
- Execute or prepare any contract call or transaction
11-
- Execute or prepare swaps from/to any token pair
11+
- Fetch token info and prices
12+
- Execute or prepare contract calls and swaps
1213
- Deploy contracts
13-
- Generate images
14-
- Search the web
15-
- And more!
14+
- Generate images and search the web
15+
16+
and more.
17+
18+
## QuickStart
1619

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

1922
<Tabs defaultValue="api">
2023
<TabsList>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { createMetadata, Details } from "@doc";
2+
3+
export const metadata = createMetadata({
4+
title: "AI FAQs | thirdweb documentation",
5+
description: "",
6+
image: {
7+
title: "AI FAQs",
8+
icon: "wallets",
9+
},
10+
});
11+
12+
# AI FAQ
13+
14+
## General
15+
16+
<Details summary="What is the context window?">
17+
The context size or window is 128k tokens or approximately 96,000 words which may vary depending on the specific language and text characteristics.
18+
</Details>
19+
20+
<Details summary="Which chains does it support?">
21+
The AI supports reading and writing capabilities on any supported EVM chain. <a href="https://thirdweb.com/chainlist">View the full list of supported chains.</a>
22+
</Details>
23+
24+
<Details summary="Does the AI support multiple languages?">
25+
Yes, you may prompt it in any spoken language.
26+
</Details>

apps/portal/src/app/ai/sidebar.tsx

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ import type { SideBar } from "@/components/Layouts/DocLayout";
44
export const sidebar: SideBar = {
55
links: [
66
{
7-
name: "Blockchain LLM",
7+
name: "Get Started",
8+
href: "/ai/chat",
9+
icon: <ZapIcon />,
10+
},
11+
{
12+
href: "https://playground.thirdweb.com",
13+
name: "Playground",
14+
icon: <ExternalLinkIcon />,
15+
},
16+
{ separator: true },
17+
{
18+
name: "Guides",
819
isCollapsible: false,
920
links: [
10-
{
11-
name: "Get Started",
12-
href: "/ai/chat",
13-
icon: <ZapIcon />,
14-
},
15-
{
16-
name: "Playground",
17-
href: "https://playground.thirdweb.com/ai/chat",
18-
icon: <ExternalLinkIcon />,
19-
},
2021
{
2122
name: "Transaction Execution",
2223
href: "/ai/chat/execution",
@@ -26,12 +27,17 @@ export const sidebar: SideBar = {
2627
href: "/ai/chat/streaming",
2728
},
2829
{
29-
name: "Vercel AI SDK",
30-
href: "/ai/chat/ai-sdk",
31-
},
32-
{
33-
name: "OpenAI SDK",
34-
href: "/ai/chat/openai-sdk",
30+
name: "Integrations",
31+
links: [
32+
{
33+
name: "Vercel AI SDK",
34+
href: "/ai/chat/ai-sdk",
35+
},
36+
{
37+
name: "OpenAI SDK",
38+
href: "/ai/chat/openai-sdk",
39+
},
40+
],
3541
},
3642
{
3743
name: "API Reference",
@@ -41,14 +47,31 @@ export const sidebar: SideBar = {
4147
},
4248
{ separator: true },
4349
{
44-
name: "MCP Server",
45-
icon: <ZapIcon />,
46-
href: "/ai/mcp",
50+
name: "Agent Tools",
51+
isCollapsible: false,
52+
links: [
53+
{
54+
name: "MCP Server",
55+
icon: <ZapIcon />,
56+
href: "/ai/mcp",
57+
},
58+
{
59+
name: "llms.txt",
60+
icon: <BookIcon />,
61+
href: "/ai/llm-txt",
62+
},
63+
],
4764
},
65+
{ separator: true },
4866
{
49-
name: "llms.txt",
50-
icon: <BookIcon />,
51-
href: "/ai/llm-txt",
67+
name: "Resources",
68+
isCollapsible: false,
69+
links: [
70+
{
71+
href: "/ai/faq",
72+
name: "FAQ",
73+
},
74+
],
5275
},
5376
],
5477
name: "AI",

0 commit comments

Comments
 (0)