Early release adding support for Anthropic's Claude 3 models as a translation provider. I've only tested Claude Haiku so far as it's by far the cheapest to use, but the quality is impressive - comparable to Gemini 1.0 Pro, and able to handle larger batch sizes with few errors.
The Anthropic SDK doesn't appear to provide a way to retrieve the list of available models so I've hardcoded the latest model names for the three sizes of Claude 3. I didn't include Claude 2 because it's way more expensive than Haiku or even Sonnet, and I can't imagine it offers any advantages for the extra costs when it comes to translation.
There are a few changes under the hood to streamline the translation flow to better support the specific quirks of each provider, and a provider cache in the GUI so that it doesn't keep recreating the providers and fetching the model list each time. There are likely to be bugs, so this is a pre-release to encourage testing.
** Release updated with some bug fixes and provisional support for OpenAI Azure - just download and unzip it again **
What's Changed
- Implemented a provider cache by @machinewrapped in #142
- Provisional support for Claude by @machinewrapped in #143
- Provisional support for OpenAI Azure by @IlmariKu
- Fixed "Translate Selection" pointlessly translating batches with no selected lines
- Fix for lines with an empty translation stealing the following line's Original>...Translation> text (mainly for Gemini)
- Speculative fix for random GUI crashes
Full Changelog: v0.6.3...v0.6.4