You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/website/docs/guide/13-ai-powered-commands/01-introduction.mdx
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,14 @@ This is an experimental feature and is subject to change.
17
17
npm install @commandkit/ai
18
18
```
19
19
20
+
You also need to install the AI SDK for the model you want to use. For example, if you want to use Google Gemini, you can install the `@ai-sdk/google` package:
21
+
22
+
```bash
23
+
npm install @ai-sdk/google
24
+
```
25
+
26
+
Refer to the [AI SDKs documentation](https://ai-sdk.dev) for more information on how to set up the AI SDK for your model.
return`You are a helpful AI discord bot. Your name is ${message.client.user.username} and your id is ${message.client.user.id}.
68
+
You are designed to assist users with their questions and tasks. You also have access to various tools that can help you perform tasks.
69
+
Tools are basically like commands that you can execute to perform specific actions based on user input.
70
+
Keep the response short and concise, and only use tools when necessary. Keep the response length under 2000 characters.
71
+
Do not include your own text in the response unless necessary. For text formatting, you can use discord's markdown syntax.
72
+
${
73
+
// If the message is in a guild, include the guild name and id
74
+
// Otherwise, mention that the message is in a direct message
75
+
message.inGuild()
76
+
?`\nYou are currently in a guild named ${message.guild.name} whose id is ${message.guildId}. While in guild, you can fetch member information if needed.`
77
+
:'\nYou are currently in a direct message with the user.'
0 commit comments