Skip to content

Setting up the ChatGPT API

Dominic Feliton edited this page Sep 9, 2024 · 5 revisions

This API is the eighth translator API supported by WorldwideChat. I don't think that ChatGPT needs much introduction, but it's the most popular and one of the first widely-used LLMs with over 100 million users. Its latest iteration, 4o, is extremely capable and cost-efficient. You can also go with 4o-mini if you're on a tighter budget, but the quality of your translations may be significantly reduced.

With that said, let's get into it. First create an account with OpenAI:

Once your account is made, you need to load your account with at least 5 USD. You can do that on the Billing Page:

After you've loaded your balance, you need to generate an API key on this page: Make sure you write this down.

You should now be all set! If the default 4o model does not work for you, you can see a list of all supported models here: https://platform.openai.com/docs/models

Keep in mind that the model you pick MUST support Structured Outputs. You can find more info here: https://openai.com/index/introducing-structured-outputs-in-the-api/

Enabling ChatGPT in WorldwideChat

If you do not want to use /wwcc, you can add these values manually:

Go to the WorldwideChat plugin folder, and open config.yml. Scroll down to this section:

useChatGPT: true

chatGPTAPIKey: (<---- Paste your ChatGPT API key one space after the colon.)

chatGPTModel: (<---- Paste your ChatGPT model one space after the colon. Generally, the default one should work fine.)

chatGPTURL: (<---- Paste your ChatGPT URL one space after the colon. Generally, the default one should work fine.)

Make sure that ONLY useChatGPT is set to true. Multiple translators cannot be enabled.

And finally, restart your Minecraft server or reload the plugin.