Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rojikaru/openai-pilot
An example of the interaction with OpenAI API
https://github.com/rojikaru/openai-pilot
Last synced: about 5 hours ago
JSON representation
An example of the interaction with OpenAI API
- Host: GitHub
- URL: https://github.com/rojikaru/openai-pilot
- Owner: rojikaru
- Created: 2024-08-05T08:44:31.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T12:10:02.000Z (3 months ago)
- Last Synced: 2024-09-05T21:08:45.354Z (2 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenAI Pilot (My first interaction with their API)
This is a simple project to test the OpenAI API. The idea is to create a simple chatbot that can answer questions about the OpenAI API. Also there is a simple function that can generate a picture based on a prompt.
## How to run the project
1. Clone the repository
```bash
git clone [email protected]:Narkobaron15/openai-pilot.git
```2. Install the dependencies
```bash
npm install
```3. Create a `.env` file in the root of the project and add the following environment variables:
```bash
OPENAI_API_KEY=your_openai_api_key
```4. Run the project
```bash
node --env-file=.env main.js
```