Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/valasek/chatgpt

Simple page using ChatGTP API
https://github.com/valasek/chatgpt

chatgpt-api rails7 tailwind

Last synced: 6 days ago
JSON representation

Simple page using ChatGTP API

Awesome Lists containing this project

README

        

# Chat GPT

Simple page using [ChatGTP API](https://platform.openai.com/docs/introduction) written using Rails 7.1.1. and Tailwind.

**Video time 🎞️**

[![Video](https://img.youtube.com/vi/Dxyr33f7UK8/hqdefault.jpg)](https://youtu.be/Dxyr33f7UK8)

# How to start

1. Register and [create API](https://platform.openai.com/docs/introduction).

2. Edit credentials in local:
`EDITOR="nano" rails credentials:edit`

3. Start the server with `/bin/dev`

This code is based on the tutorial [Integrate OpenAI to Rails, Get started with OpenAI APIs](https://enlear.academy/integrate-openai-to-rails-3cd148786b49)