OpenHands uses LiteLLM to make calls to OpenAI’s chat models. You can find their documentation on using OpenAI as a provider here.
LLM
tab:
LLM Provider
to OpenAI
LLM Model
to the model you will be using.
Visit here to see a full list of OpenAI models that LiteLLM supports.
If the model is not in the list, enable Advanced
options, and enter it in Custom Model
(e.g. openai/<model-name> like openai/gpt-4o
).API Key
to your OpenAI API key. To find or create your OpenAI Project API Key, see here.LLM
tab:
Advanced
optionsCustom Model
to openai/<model-name> (e.g. openai/gpt-4o
or openai/<proxy-prefix>/<model-name>)Base URL
to the URL of your OpenAI proxyAPI Key
to your OpenAI API key