Skip to content

Commit

Permalink
Formatting the data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Jul 21, 2023
1 parent fc79526 commit 01e4a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/chat/chat.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export class ChatComponent implements OnInit {
this.messages.push({ role: 'user', content });

this.chatService.getPrompt(content).subscribe(
(completion: string) => {
(completion: any) => {
this.conversations.push({
query: content,
response: completion,
response: completion?.chat,
});
this.spinnerOn = false;
this.changeDetectorRef.detectChanges();
Expand Down

0 comments on commit 01e4a00

Please sign in to comment.