DEV Community

Dragan Atanasov
Dragan Atanasov

Posted on

1 1 1 1 1

Omnilingual AI - Talk with AI in your language

Omnilingual AI in action
This is a submission for the Cloudflare AI Challenge.

What I Built

"Omnilingual AI" - Your Multilingual Conversation Companion!
Talk with AI in your preferred language and receive responses translated instantly. You can customize the AI model, the input and the output language.

Demo

Try out the demo at: https://omnilingual-ai.dragan.workers.dev/

The UI frontend, powered by Flutter, ensures a consistent user experience across all devices, including browsers, mobile phones, tablets, and desktops.

My Code

Check the code on GitHub: https://github.com/drashmk/omnilingual-ai.

Journey

The journey of building "Omnilingual AI" was an interesting and challenging one. Most AI LLMs work best in English, which can be challenging for many, especially kids, whose primary language isn't English. "Omnilingual AI" solves this by understanding and responding in multiple languages, making AI accessible to everyone, regardless of their language.

To make it work, the worker utilizes the @cf/meta/m2m100-1.2b translation model. It translates the input into English, sends it to the selected text generation LLM and then translates the response in the selected language.

I chose Flutter for the UI frontend due to its versatility and ability to run on various platforms.
Its widget library makes crafting visually appealing and responsive user interfaces a breeze(also because my day job is backend developer, this helped me to make the prototype faster while ensuring it didn't look like made by a BE dev😁).

Each bubble contains an "Original->" button, which reveals the original response from the LLM before translation.

Multiple Models and/or Triple Task Types

  • Text Generation Models for the conversation with AI, configurable from the dropdown in the βš™οΈSettings menu
  • @cf/meta/m2m100-1.2b for translating between the user and AI

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry πŸ‘€

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more β†’

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay