Skip to content

Lakphy/your-gpt

Repository files navigation

Custom ChatGPT Client

This is a custom client for the ChatGPT API.

Caution

This is just a client for local testing, do not put your API key in a public environment!

Begin Your-GPT

Insert your ChatGPT API key and the GPT Host you are using into your terminal

Using Bash

echo '# ChatGPT' >> ~/.bashrc
echo 'export GPT_TOKEN="YOUR_API_KEY"' >> ~/.bashrc
echo 'export GPT_HOST="YOUR_HOST"' >> ~/.bashrc

source ~/.bashrc

source ~/.bashrc

Using ZSH

echo '# ChatGPT' >> ~/.zshrc
echo 'export GPT_TOKEN="YOUR_API_KEY"' >> ~/.zshrc
echo 'export GPT_HOST="YOUR_HOST"' >> ~/.zshrc

source ~/.zshrc

source ~/.zshrc

Usage

pnpm install

Dev Server

pnpm dev

Build

pnpm build