Skip to content

Commit 95b85b3

Browse files
refactor: update error logging, import paths and prompt guidelines across multiple files
1 parent 5bc603a commit 95b85b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/ai/providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const chatModel = createFallback({
3030
cohere('command-a-03-2025'),
3131
],
3232
onError: (error, modelId) => {
33-
logger.error({ error }, `Error with model ${modelId}:`);
33+
logger.error(`error with model ${modelId}, switching to next model`);
3434
},
3535
modelResetInterval: 60000,
3636
});

src/utils/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { city, country, timezone } from '@/config';
2-
import type { RequestHints } from '@/lib/ai/prompts';
2+
import type { RequestHints } from '@/types';
33
import { getChannelName, getMessagesByChannel } from '@/lib/queries';
44
import { convertToModelMessages } from '@/utils/messages';
55
import { getTimeInCity } from '@/utils/time';
66
import type { ModelMessage } from 'ai';
7-
import { Channel } from 'discord.js-selfbot-v13';
7+
import { Channel, Message } from 'discord.js-selfbot-v13';
88

99
export async function buildChatContext(
1010
msg: Message,

0 commit comments

Comments
 (0)