1.0.4 • Published 1 year ago
tour-planner-gpt v1.0.4
🔗 Installation
npm install tour-planner-gpt
Quick Start
Import the package.
import tourPlanner from "tour-planner-gpt";
Create a new instance of tourPlanner.
const gpt = new tourPlanner();
Set your API key.
gpt.setApiKey("your API key goes here.");
Create one for free @ https://platform.openai.com/account/api-keys
Basic Example
// Add a prompt you would like to ask to ChatGPT and get response from the ChatGPT.
const response = await gpt.getTourPackageDetails(startDate, endDate, country, travelers, city, price);