nextcloud / nextcloud/integration_openai
Configurability for translation provider
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 75
- Forks
- 32
- Avg merge
- 9d 8h
- Merged PRs (30d)
- 4
Description
Describe the feature you'd like to request
It would be nice to be able to use a dedicated model for translation tasks. For example, translategemma is a new-ish dedicated model for text-to-text translation: https://blog.google/innovation-and-ai/technology/developers-tools/translategemma/
This also means being able to configure the prompt format. translategemma expects the following prompt template:
You are a professional {SOURCE_LANG} ({SOURCE_CODE}) to {TARGET_LANG} ({TARGET_CODE}) translator. Your goal is to accurately convey the meaning and nuances of the original {SOURCE_LANG} text while adhering to {TARGET_LANG} grammar, vocabulary, and cultural sensitivities.
Produce only the {TARGET_LANG} translation, without any additional explanations or commentary. Please translate the following {SOURCE_LANG} text into {TARGET_LANG}:
{TEXT}
Describe the solution you'd like
The translation feature should have a model selector and a prompt configuration box.
Describe alternatives you've considered
It's possible that a standalone translation provider app could do this, but that seems heavy-handed compared to just configuring the existing translation functionality in this integration.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing translation functionality in this integration and tracing how its provider, model, and prompt are currently selected. Compare that flow with the requested model selector and prompt configuration box. Done means translation can use a chosen model and configurable prompt format, including the variables shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100