AIChat lets you interact with two AI personalities:
- Vixby - guesses your responses without using AI.
- ChatGPT - uses AI via OpenRouter API to give intelligent replies.
- Get your OpenRouter API key by signing up at OpenRouter.
- Choose the model name you want to use (e.g.,
gpt-4o-mini). - Open
gpt.jsand go to lines 33–34:
const apiKey = 'API here';
const response = await fetch("Model name", {
// ...
});- Replace 'API here' with your API key and "Model name" with your chosen model.
- Save the file. Run the project - ChatGPT will now respond using your key.
- Node.js:
node gpt.js- Browser:
Open index.html in your browser. Make sure your API key and model are set in gpt.js before running.
https://portfolio.am.tumo.world/project/68781d73bde84ac72aa7253e
This project is licensed under the MIT License.