Skip to content

envm92/mentor-code-openai-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mentor Code OpenAI Nodejs Integration

The Mentor Code OpenAI Node.js Integration is a Node.js WebSocket server that connects with OpenAI, utilizing an assistant designed to fulfill a code mentor role. This development is associated with the application linked here.

Features

  • WebSockect Server [Express + WS]
  • Easy integration with OpenAI API Assistants
  • Use of zodResponseFormat to ensure that the responses generated by the model adhere to a predefined schema

Installation

To get started with this project, follow these steps:

  1. Clone the repository:
git clone https://github.com/envm92/mentor-code-openai-nodejs.git
cd mentor-code-openai-nodejs
  1. Install dependencies
npm install
  1. Set up environment variables: Store the key in a safe location, like a .zshrc file or another text file on your computer. Once you’ve generated an API key, export it as an environment variable in your terminal.
export OPENAI_API_KEY="your_api_key_here"

Useful Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published