Skip to content

Commit 25c9278

Browse files
committed
started portal docs
1 parent e26d81c commit 25c9278

File tree

93 files changed

+393
-6422
lines changed

Some content is hidden

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

93 files changed

+393
-6422
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 4 additions & 93 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

@@ -127,39 +100,12 @@ const apisLinks = [
127100
href: "https://api.thirdweb.com/reference",
128101
name: "HTTP API",
129102
},
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-
},
142103
{
143104
href: "/bundler",
144105
name: "Bundler",
145106
},
146107
];
147108

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-
163109
const sdkLinks = [
164110
{
165111
href: "/references/typescript/v5",
@@ -300,11 +246,6 @@ export function Header() {
300246
</nav>
301247

302248
<div className="flex items-center">
303-
<DropdownLinks
304-
category="AI"
305-
links={aiLinks}
306-
onLinkClick={() => setShowBurgerMenu(false)}
307-
/>
308249
<DropdownLinks
309250
category="SDKs"
310251
links={sdkLinks}
@@ -315,12 +256,6 @@ export function Header() {
315256
links={apisLinks}
316257
onLinkClick={() => setShowBurgerMenu(false)}
317258
/>
318-
319-
<DropdownLinks
320-
category="Tools"
321-
links={toolLinks}
322-
onLinkClick={() => setShowBurgerMenu(false)}
323-
/>
324259
<DropdownLinks
325260
category="Support"
326261
links={supportLinks}
@@ -355,18 +290,6 @@ export function Header() {
355290
))}
356291
</div>
357292

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-
370293
<div className="flex flex-col gap-4">
371294
<h3 className="font-semibold text-lg">SDKs</h3>
372295
{sdkLinks.map((link) => (
@@ -409,18 +332,6 @@ export function Header() {
409332
name="Changelog"
410333
onClick={() => setShowBurgerMenu(false)}
411334
/>
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>
424335
</div>
425336
</div>
426337
)}

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: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,14 @@ import type { SideBar } from "@/components/Layouts/DocLayout";
44
export const sidebar: SideBar = {
55
links: [
66
{
7-
name: "Blockchain LLM",
7+
name: "AI",
88
isCollapsible: false,
99
links: [
1010
{
1111
name: "Get Started",
1212
href: "/ai/chat",
1313
icon: <ZapIcon />,
1414
},
15-
{
16-
name: "Playground",
17-
href: "https://playground.thirdweb.com/ai/chat",
18-
icon: <ExternalLinkIcon />,
19-
},
2015
{
2116
name: "Transaction Execution",
2217
href: "/ai/chat/execution",
@@ -26,12 +21,17 @@ export const sidebar: SideBar = {
2621
href: "/ai/chat/streaming",
2722
},
2823
{
29-
name: "Vercel AI SDK",
30-
href: "/ai/chat/ai-sdk",
31-
},
32-
{
33-
name: "OpenAI SDK",
34-
href: "/ai/chat/openai-sdk",
24+
name: "Integrations",
25+
links: [
26+
{
27+
name: "Vercel AI SDK",
28+
href: "/ai/chat/ai-sdk",
29+
},
30+
{
31+
name: "OpenAI SDK",
32+
href: "/ai/chat/openai-sdk",
33+
},
34+
],
3535
},
3636
{
3737
name: "API Reference",
@@ -41,14 +41,36 @@ export const sidebar: SideBar = {
4141
},
4242
{ separator: true },
4343
{
44-
name: "MCP Server",
45-
icon: <ZapIcon />,
46-
href: "/ai/mcp",
44+
name: "Agent Tools",
45+
isCollapsible: false,
46+
links: [
47+
{
48+
name: "MCP Server",
49+
icon: <ZapIcon />,
50+
href: "/ai/mcp",
51+
},
52+
{
53+
name: "llms.txt",
54+
icon: <BookIcon />,
55+
href: "/ai/llm-txt",
56+
},
57+
],
4758
},
59+
{ separator: true },
4860
{
49-
name: "llms.txt",
50-
icon: <BookIcon />,
51-
href: "/ai/llm-txt",
61+
name: "Resources",
62+
isCollapsible: false,
63+
links: [
64+
{
65+
href: "https://playground.thirdweb.com/ai/chat",
66+
icon: <ExternalLinkIcon />,
67+
name: "Playground",
68+
},
69+
{
70+
href: "/ai/faq",
71+
name: "FAQ",
72+
},
73+
],
5274
},
5375
],
5476
name: "AI",

0 commit comments

Comments
 (0)