Skip to content

🦜 Translator built with Astro and OpenAI API

Notifications You must be signed in to change notification settings

facuperezm/pollyglot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PollyGlot Translator

App Screenshot

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!

Table of Contents

Challenges

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.

Tech Stack

  • HTML
  • CSS
  • JavaScript
  • Astro

Environment Variables

To run this project, you will need to add the following environment variable to your .env file:

  • OPENAI_API_KEY

How to Download and Run the Project

To get a local copy up and running, follow these steps:

  1. Clone the repository:
    git clone https://github.com/facuperezm/pollyglot.git
  2. Navigate into the project directory:
    cd pollyglot
  3. Install the dependencies:
    pnpm i
  4. Add your .env file with the necessary environment variables.
  5. Start the development server:
    pnpm dev
  6. Open your browser and go to http://localhost:3000/ to view the app.

Acknowledgements

Thanks for reading!

portfolio linkedin github