File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Injectable , Logger } from '@nestjs/common' ;
2
2
import { HttpService } from '@nestjs/axios' ;
3
3
import { ChatCompletionChunk , Chat } from './chat.model' ;
4
- import { Message , Role } from 'src/chat/message.model' ;
4
+ import { Message , MessageRole } from 'src/chat/message.model' ;
5
5
import { InjectRepository } from '@nestjs/typeorm' ;
6
6
import { Repository } from 'typeorm' ;
7
7
import { User } from 'src/user/user.model' ;
@@ -278,7 +278,7 @@ export class ChatService {
278
278
async saveMessage (
279
279
chatId : string ,
280
280
messageContent : string ,
281
- role : Role ,
281
+ role : MessageRole ,
282
282
) : Promise < Message > {
283
283
// Find the chat instance
284
284
const chat = await this . chatRepository . findOne ( { where : { id : chatId } } ) ;
You can’t perform that action at this time.
0 commit comments