File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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} ) ;
Original file line number Diff line number Diff line change 11import { city , country , timezone } from '@/config' ;
2- import type { RequestHints } from '@/lib/ai/prompts ' ;
2+ import type { RequestHints } from '@/types ' ;
33import { getChannelName , getMessagesByChannel } from '@/lib/queries' ;
44import { convertToModelMessages } from '@/utils/messages' ;
55import { getTimeInCity } from '@/utils/time' ;
66import type { ModelMessage } from 'ai' ;
7- import { Channel } from 'discord.js-selfbot-v13' ;
7+ import { Channel , Message } from 'discord.js-selfbot-v13' ;
88
99export async function buildChatContext (
1010 msg : Message ,
You can’t perform that action at this time.
0 commit comments