Using OpenAI (ChatGPT) for automatic translation in Loco
This bot uses OpenAI's Chat Completions API to perform batch translation of many (effectively separate) source strings. Thus it will behave more like a 'traditional' translation API. The advantages are custom prompting, and its understanding of context.
Loco is not affiliated with OpenAI, and is not charging for access to ChatGPT. You will need your own OpenAI account and API key.
Configure a bot to use OpenAI
- Navigate to the Bots tab wherever you see the :robot icon: in the Loco dashboard.
- Click "New bot", select "OpenAI (ChatGPT)", and enter your OpenAI API key into the first text field.
- Save the bot and it's ready to run. See also how to run a translation bot.
Steps for generating an OpenAI API key
- Sign up for an OpenAI account.
- Go to the API Keys section of the dashboard.
- Check you have sufficient credit for your needs in the billing section.
See our general recommendations for key security and note that your OpenAI key requires write access to use the Chat Completions API.
Model compatibility
Your bot will be configured to use gpt-4o-mini
by default, but you can enter any model as long as it's compatible with both the
Chat Completions API and
Structured Outputs.
See OpenAI models and supported models for structured outputs