weblate icon indicating copy to clipboard operation
weblate copied to clipboard

Multiple instances of automatic suggestion services

Open kingshuaishuai opened this issue 1 year ago • 7 comments

Describe the problem

Currently, we can only create one OpenAI instance in weblate, and if we want to switch models, we have to reconfigure it, hoping to provide the ability to create multiple OpenAI instances

Describe the solution you would like

hope to provide the ability to create multiple OpenAI instances

Describe alternatives you have considered

No response

Screenshots

No response

Additional context

No response

kingshuaishuai avatar Feb 27 '25 10:02 kingshuaishuai

This issue has been added to the backlog. It is not scheduled on the Weblate roadmap, but it eventually might be implemented.

In case you need this feature soon, please consider helping or push it by funding the development.

github-actions[bot] avatar Feb 27 '25 12:02 github-actions[bot]

This might be useful for other automatic translations as well. It would make it easy to evaluate different settings/context strings/prompts of a provider by seeing the results side-by-side.

michael-smt avatar Jun 20 '25 12:06 michael-smt

Or for another use case: to enable both models from DeepL (see #15194) and give translators the choice which result they prefer.

(This feature should be sponsored by the translation providers because doing more requests in parallel will be even better for their business 😉)

michael-smt avatar Jun 20 '25 12:06 michael-smt

I agree that this might be useful for more services than just OpenAI, so there is no reason to limit the feature only to it.

nijel avatar Jun 23 '25 10:06 nijel

I think we should introduce a proper database model for the services:

  • Nullable foreign key to support site-wide installations
  • Configuration JSON field (migrated from existing settings)
  • Activation toggle as described in https://github.com/WeblateOrg/weblate/issues/14659
  • Priority field to achieve https://github.com/WeblateOrg/weblate/issues/5770
  • This would also pave a straightforward way to https://github.com/WeblateOrg/weblate/issues/9638
  • It has to be possible to disable site-wide installation on the project scope

nijel avatar Jan 15 '26 13:01 nijel

This could also be useful for #21718 where you might want one instance configured for suggestions, and another, differently configured instance for the quality evaluations.

michael-smt avatar Oct 01 '26 13:10 michael-smt

Thank you for your report — the issue has now been resolved.

The fix has been merged into the repository and will be included in the upcoming Weblate 2026.11 release.

  • If you encounter any issues with the fix, please comment in this thread.
  • If you experience a similar but separate issue, open a new report so we can track it properly.
  • If you find Weblate helpful, consider supporting its development.

github-actions[bot] avatar Oct 13 '26 13:10 github-actions[bot]