PollyGlot is an AI project designed to provide accurate translations. Built with HTML, CSS, and JavaScript, this project leverages Astro and integrates the latest GPT-4o model from OpenAI to deliver high-quality translation. Try it out!
Learning to use the OpenAI API with different large language models (LLMs) has been a significant challenge and a great learning experience. Managing the temperature settings and selecting the appropriate model for different purposes has been an interesting challenge. Additionally, understanding the importance of tokens and their management has been crucial in optimizing the performance and cost-efficiency of the translations.
- HTML
- CSS
- JavaScript
- Astro
To run this project, you will need to add the following environment variable to your .env
file:
OPENAI_API_KEY
To get a local copy up and running, follow these steps:
- Clone the repository:
git clone https://github.com/facuperezm/pollyglot.git
- Navigate into the project directory:
cd pollyglot
- Install the dependencies:
pnpm i
- Add your
.env
file with the necessary environment variables. - Start the development server:
pnpm dev
- Open your browser and go to
http://localhost:3000/
to view the app.