NOTE: This article is for the on-premise version. The SaaS version uses the latest model (GPT-4o at the time of writing)
If you're using the on-premise version of GPT, you can change the default model from GPT-3.5 Turbo to another model, such as GPT-4o, by following these simple steps:
appsettings.json file in your application’s
configuration directory.
OpenAIModelName key. If it exists, update it;
if not, add it. For example: "OpenAIModelName": "gpt-4o"
appsettings.json file.For a full list of available models and further documentation, visit the OpenAI Models Documentation.
By modifying the OpenAIModelName in your
appsettings.json file, you can easily switch to a different
language model, enabling you to take advantage of the latest advancements in
AI technology.
Make sure that your API key has access to the model that you choose. Also keep in mind that GPT-4 models are significantly more expensive than GPT-3.5.