examples
    examples/ai-translator
    Public

    Fork

    About

    PIPE: An AI translator to translator text from one language into another

    Meta

    generate

    Functions

    No functions added to the Pipe.

    Readme

    Translator AI by ⌘ Langbase

    License: MIT Fork to ⌘ Langbase

    Build an AI Translator with Pipes — ⌘ Langbase

    A translator example to help you translate text from one language to another. This translator is built by using an AI Pipe on Langbase.

    Check out the live demo here.

    Features

    • 💬 AI Translator — Built with an AI Pipe on ⌘ Langbase
    • ⚡️ Streaming — Real-time streamed translations
    • 🔋 Responsive and open source — Works on all devices and platforms

    Learn more

    1. Check the AI Translator Pipe on ⌘ Langbase
    2. Read the source code on GitHub for this example
    3. Go through Documentaion: Pipe Quick Start
    4. Learn more about Pipes & Memory features on ⌘ Langbase

    Get started

    Let's get started with the project:

    To get started with Langbase, you'll need to create a free personal account on Langbase.com and verify your email address. Done? Cool, cool!

    1. Fork the AI Translator Pipe on ⌘ Langbase.
    2. Go to the API tab to copy the Pipe's API key (to be used on server-side only).
    3. Download the example project folder from here or clone the reppository.
    4. cd into the project directory and open it in your code editor.
    5. Duplicate the .env.example file in this project and rename it to .env.local.
    6. Add the following environment variables:
    sh
    1# Replace `PIPE_API_KEY` with the copied API key. 2NEXT_LB_PIPE_API_KEY="PIPE_API_KEY" 3 4# Install the dependencies using the following command: 5npm install 6 7# Run the project using the following command: 8npm run dev

    Your app template should now be running on localhost:3000.

    NOTE: This is a Next.js project, so you can build and deploy it to any platform of your choice, like Vercel, Netlify, Cloudflare, etc.


    Built by ⌘ Langbase.com — Ship hyper-personalized AI assistants with memory!