Fuel GPT is a lightweight chatbot built using Next.js and the OpenAI Assistants API. It was trained on documentation and code examples from Fuel website and repositories. Its capabilities are:
- Ask anything about Fuel and Sway documentation.
- Generate simple Sway smart contract examples.
- Translate from Solidity to Sway.
Original front-end code was taked from chatgpt-minimal
- Install NodeJS 18.
- Clone the repository.
- Install dependencies with
npm install
. - Copy
.env.example
to.env.local
and modify environment variables accordingly. - Start the application using
npm run dev
. - Visit
http://localhost:3000
in your browser.
- Clone the repository and navigate to the root directory.
- Update the
OPENAI_API_KEY
environment variable in thedocker-compose.yml
file. - Build the application using
docker-compose build .
. - Start the application by running
docker-compose up -d
.
Required environment variables:
For OpenAI account:
Name | Description | Default Value |
---|---|---|
OPENAI_API_BASE_URL | Use if you intend to use a reverse proxy for api.openai.com . |
https://api.openai.com |
OPENAI_API_KEY | Secret key string obtained from the OpenAI API website. |