Last active
October 13, 2023 09:02
-
-
Save GuillaumeDaviid/68c78f03da8d4f2a327473c1cbe063ad to your computer and use it in GitHub Desktop.
angular, import service openAI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import { FormControl } from '@angular/forms'; | |
import { OpenAiService } from '../open-ai.service' | |
@Component({ | |
selector: 'app-chat', | |
templateUrl: './chat.component.html', | |
styleUrls: ['./chat.component.scss'] | |
}) | |
export class ChatComponent { | |
newMsg: string = ''; | |
constructor(private openAiService: OpenAiService) {} | |
handleClick() { | |
// Implement the handleClick function to handle button click | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment