Skip to content

Commit b1619e6

Browse files
pwizlaPortal Code Bot
andauthored
ai-toolbar: reorder actions (ChatGPT, Claude after Copy Markdown) (#2830)
* docs(ai): add consolidated AI tools page, Kapa guidance, and prose updates * ai-toolbar: place ChatGPT and Claude right after Copy Markdown * Delete docusaurus/docs/ai-tools.md --------- Co-authored-by: Portal Code Bot <[email protected]>
1 parent 2f182f9 commit b1619e6

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

docusaurus/src/components/AiToolbar/config/aiToolsConfig.js

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,29 @@ export const aiToolsConfig = {
1111
icon: 'copy',
1212
actionType: 'copy-markdown',
1313
},
14+
{
15+
id: 'open-chatgpt',
16+
label: 'Open with ChatGPT',
17+
icon: 'open-ai-logo',
18+
actionType: 'open-llm',
19+
targetUrl: 'https://chat.openai.com/',
20+
promptTemplate: 'Read from {{url}} so I can ask questions about it.',
21+
localizedPromptTemplates: aiPromptTemplates,
22+
promptParam: 'prompt',
23+
openIn: '_blank',
24+
},
25+
{
26+
id: 'open-claude',
27+
label: 'Open with Claude',
28+
icon: 'chat-teardrop-text',
29+
actionType: 'open-llm',
30+
targetUrl: 'https://claude.ai/new',
31+
promptTemplate: 'Read from {{url}} so I can ask questions about it.',
32+
localizedPromptTemplates: aiPromptTemplates,
33+
copyPromptToClipboard: true,
34+
promptParam: 'q',
35+
openIn: '_blank',
36+
},
1437
{
1538
id: 'view-llms',
1639
label: 'View LLMs.txt',
@@ -35,28 +58,5 @@ export const aiToolsConfig = {
3558
actionType: 'navigate',
3659
url: '/llms-full.txt',
3760
},
38-
{
39-
id: 'open-chatgpt',
40-
label: 'Open with ChatGPT',
41-
icon: 'open-ai-logo',
42-
actionType: 'open-llm',
43-
targetUrl: 'https://chat.openai.com/',
44-
promptTemplate: 'Read from {{url}} so I can ask questions about it.',
45-
localizedPromptTemplates: aiPromptTemplates,
46-
promptParam: 'prompt',
47-
openIn: '_blank',
48-
},
49-
{
50-
id: 'open-claude',
51-
label: 'Open with Claude',
52-
icon: 'chat-teardrop-text',
53-
actionType: 'open-llm',
54-
targetUrl: 'https://claude.ai/new',
55-
promptTemplate: 'Read from {{url}} so I can ask questions about it.',
56-
localizedPromptTemplates: aiPromptTemplates,
57-
copyPromptToClipboard: true,
58-
promptParam: 'q',
59-
openIn: '_blank',
60-
},
6161
],
6262
};

0 commit comments

Comments
 (0)