Skip to content

adding prompt #4

Answered by Zain-ul-din
Deph1 asked this question in Q&A
Apr 3, 2023 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

In typescript you cloud add prompt like:

import { ChatGPTAPI } from 'chatgpt';
const client new ChatGPTAPI({ apiKey: this.apiKey });
client.sendMessage(prompt);

usage in this project

ChatGPT API - package used in this project

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Zain-ul-din
Comment options

@Deph1
Comment options

@Zain-ul-din
Comment options

@Deph1
Comment options

@Zain-ul-din
Comment options

Answer selected by Zain-ul-din
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants