Skip to content

Instantly share code, notes, and snippets.

@GuillaumeDaviid
Last active October 13, 2023 09:02
Show Gist options
  • Save GuillaumeDaviid/68c78f03da8d4f2a327473c1cbe063ad to your computer and use it in GitHub Desktop.
Save GuillaumeDaviid/68c78f03da8d4f2a327473c1cbe063ad to your computer and use it in GitHub Desktop.
angular, import service openAI
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