AGiXT icon indicating copy to clipboard operation
AGiXT copied to clipboard

Add automatic translations

Open Josh-XT opened this issue 1 year ago • 0 comments

Add automatic translations

  • Added an agent setting for LANGUAGE that will allow you to set a language other than English to receive agent responses in.
    • For example, if your agent's language is set to ru, it will allow the user to write to the agent in English and receive text output in Russian. This would include the English response as well as the Russian response.
    • If you're using ezLocalai or another text to speech provider (will expand on this later) for your agent and have it enabled, you will get an output of what you said in the target language as well as the response audio in the target language.
  • Improved the function that converts pydantic models to text schemas.
  • Currently, the LLM associated with the agent currently is set to handle the text translation, I'm assuming there are significantly better methods for doing this, so the inner workings will likely change to a local language translation module.

The goal of this PR is to assist in the use case of language learning since I've recently taken an interest.

Josh-XT avatar Sep 29 '24 19:09 Josh-XT