failed automatic translation: Unsupported model: auto #21350
Replies: 2 comments 7 replies
|
It isn't the chat endpoint failing, it's the model listing. The configured model is now checked against what the API actually reports. def select_model(self) -> str:
models = self._models if self._models is not None else set()
if self.settings["model"] in models:
return self.settings["model"]
if self.settings["model"] == "auto":
for model, _name in self.settings_form.MODEL_CHOICES:
...
if model in models:
return model
if self.settings["model"] == "custom":
return self.settings["custom_model"]
msg = f"Unsupported model: {self.settings['model']}"
raise MachineTranslationError(msg)
The thing to test is therefore the listing, not translation: with whatever base URL you have configured. Usual causes are a base URL pointing at a gateway that only implements chat completions, or a restricted key — project keys can be issued without model read permission, and then listing fails while completions work fine. Two things while you test. The list is cached for an hour, so a corrected key won't take effect straight away. And if your endpoint genuinely has no listing, set the model to Custom model and put the id in Custom model name; that branch returns it without consulting the fetched list at all. |
|
https://github.com/orgs/WeblateOrg/discussions/21350 should improve the feedback to the user on such an error. Still having the |
Uh oh!
There was an error while loading. Please reload this page.
Yesterday I pulled the more recent docker images, upgrading my weblate instance from 5.15 to 2026.8.1, and now AI translation has stopped working, I get an error message:
I tried switching the OpenAI model from "Automatic selection" to "GPT-5.4 mini" but this results in the same error message "failed automatic translation: Unsupported model: GPT-5.4 mini".
Looks like OpenAI translation is broken?
All reactions