Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 501 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 501 Bytes

tokengenAI

A simple example of how to generate text prompts via OpenAI.

Getting Started

Installation

To run this code, start with the following commands:

npm install
npm run dev

Usage

To use the API, you can make a POST request to the /api/v0/llm endpoint. Here is an example of how to make a request using curl:

curl -X POST http://localhost:3000/api/v0/llm \
     -H "Content-Type: application/json" \
     -d '{
       "prompt": "Your prompt here"
     }'