A progressive Node.js framework for building efficient and scalable server-side applications.
This repo uses Azure OpenAI, Langchain + Gemini 1.0 Pro, and Google Cloud Translation API to translate text from one language to another language
Google Cloud credits are provided for this project. #GeminiSprint hashtag.
$ npm install
$ cd ./nestjs-genai-translation
$ npm install
$
$ cd ../ng-genai-translation-app
$ npm install
- Copy
.env.docker.example
to.env
- Update the environment variables in
.env
$ cp .env.docker.example .env
$ docker-compose up -d
-
Open the browser and navigate to http://localhost:3000/api
-
Test the API in Swagger
-
Open the browser and navigate to http://localhost:4200
-
Use the simple UI to translate text or paragraph