File tree 2 files changed +2
-15
lines changed
2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ class ChatCommand extends BaseCommand {
57
57
const aiDisplay = this . getDisplayContent ( PromptRole . AI ) ;
58
58
let lastMessage = 'How can I help you today?' ;
59
59
60
+ console . warn = ( ) => { } ;
60
61
process . stdout . write (
61
62
this . getDisplayContent ( PromptRole . SYSTEM ) + `Type ${ chalk . cyan ( 'exit' ) } to end this conversation\n`
62
63
) ;
Original file line number Diff line number Diff line change 1
- import type { BaseLanguageModel } from '@langchain/core/language_models/base' ;
2
-
3
- import { ChatMinimax } from '@langchain/community/chat_models/minimax' ;
4
-
5
1
import Platform from './base' ;
6
2
7
3
class MiniMax extends Platform {
8
4
protected model = 'abab5.5-chat' ;
9
5
10
6
public name = 'MiniMax' ;
11
7
12
- protected server = 'api.minimax.chat' ;
13
-
14
- protected getChatModel ( apiKey ?: string , streaming = false ) : BaseLanguageModel {
15
- return new ChatMinimax ( {
16
- minimaxApiKey : apiKey ,
17
- minimaxGroupId : process . env . MINIMAX_GROUP_ID || '1782658868262748274' ,
18
- model : this . model ,
19
- streaming,
20
- temperature : this . temperature
21
- } ) ;
22
- }
8
+ protected server = 'api.minimax.chat/v1/text/chatcompletion_v2#' ;
23
9
}
24
10
25
11
export default MiniMax ;
You can’t perform that action at this time.
0 commit comments