Skip to content

Commit 1873d43

Browse files
authored
Update model to deepseek (#64)
* Update askKaru.ts * Update messageTranslate.ts * Update moodcheck.ts * Update rewrite.ts * Update summary&keyPoints.ts * Update timelapse.ts * Update karuHandleMessage.ts * emoji update
1 parent a6fd38e commit 1873d43

File tree

8 files changed

+23
-9
lines changed

8 files changed

+23
-9
lines changed

src/commands/ai/askKaru.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Always assume the user wants high-signal help — no fluff. You give newest and
105105
`.trim();
106106

107107
const completion = await karus.chat.completions.create({
108-
model: "x-ai/grok-4-fast:free",
108+
model: "deepseek/deepseek-chat-v3.1:free",
109109
messages: [
110110
{ role: "system", content: systemPrompt },
111111
{ role: "user", content: prompt },

src/commands/ai/messageTranslate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Do NOT add anything else.
8282
`.trim();
8383

8484
const completion = await karus.chat.completions.create({
85-
model: "x-ai/grok-4-fast:free",
85+
model: "deepseek/deepseek-chat-v3.1:free",
8686
temperature: 0.3,
8787
top_p: 1,
8888
messages: [

src/commands/ai/moodcheck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ${messageTexts}
8181
`.trim();
8282

8383
const completion = await karus.chat.completions.create({
84-
model: "x-ai/grok-4-fast:free",
84+
model: "deepseek/deepseek-chat-v3.1:free",
8585
temperature: 0.3,
8686
top_p: 1,
8787
messages: [{ role: "user", content: systemPrompt }],

src/commands/ai/rewrite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ const rewrite: BotCommand = {
239239

240240
try {
241241
const completion = await karus.chat.completions.create({
242-
model: "x-ai/grok-4-fast:free",
242+
model: "deepseek/deepseek-chat-v3.1:free",
243243
temperature: 0.3,
244244
messages: [{ role: "user", content: prompt }],
245245
});

src/commands/ai/summary&keyPoints.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Key Points:
104104

105105
try {
106106
const completion = await karus.chat.completions.create({
107-
model: "x-ai/grok-4-fast:free",
107+
model: "deepseek/deepseek-chat-v3.1:free",
108108
temperature: 0.3,
109109
messages: [{ role: "user", content: prompt }],
110110
});

src/commands/ai/timelapse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ${content}
111111

112112
try {
113113
const completion = await karus.chat.completions.create({
114-
model: "x-ai/grok-4-fast:free",
114+
model: "deepseek/deepseek-chat-v3.1:free",
115115
temperature: 0.2,
116116
messages: [{ role: "user", content: fullPrompt }],
117117
});

src/commands/general/getEmoji.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1-
import { SlashCommandBuilder, ChatInputCommandInteraction } from "discord.js";
1+
import {
2+
SlashCommandBuilder,
3+
ChatInputCommandInteraction,
4+
ApplicationIntegrationType,
5+
InteractionContextType,
6+
} from "discord.js";
27
import type { BotCommand } from "../../interfaces/botTypes.js";
38
import { containerTemplate, EmojiSize, getEmojiURL, sendAlertMessage } from "../../utils/export.js";
49

510
const emojiURL: BotCommand = {
611
data: new SlashCommandBuilder()
712
.setName("emoji-url")
813
.setDescription("Get emoji URL.")
14+
.setIntegrationTypes([
15+
ApplicationIntegrationType.UserInstall,
16+
ApplicationIntegrationType.GuildInstall,
17+
])
18+
.setContexts([
19+
InteractionContextType.BotDM,
20+
InteractionContextType.PrivateChannel,
21+
InteractionContextType.Guild,
22+
])
923
.addStringOption(option =>
1024
option.setName("emoji").setDescription("Emoji to get URL for").setRequired(true),
1125
)

src/utils/karuHandleMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Rules:
9191

9292
// Call Grok
9393
const completion = await karus.chat.completions.create({
94-
model: "x-ai/grok-4-fast:free",
94+
model: "deepseek/deepseek-chat-v3.1:free",
9595
temperature: 0.7,
9696
top_p: 0.9,
9797
messages: messages,
@@ -102,7 +102,7 @@ Rules:
102102

103103
// Classify response for sticker
104104
const reactionCompletion = await karus.chat.completions.create({
105-
model: "x-ai/grok-4-fast:free",
105+
model: "deepseek/deepseek-chat-v3.1:free",
106106
temperature: 0.7,
107107
top_p: 1,
108108
messages: [

0 commit comments

Comments
 (0)