From ac61627da194e43ad91d0874b4250cc8a15aa4a8 Mon Sep 17 00:00:00 2001 From: Tomas Hensrud Gulla Date: Mon, 28 Oct 2024 16:42:10 +0100 Subject: [PATCH] Use gpt-4o as default model --- README.md | 8 ++++---- .../Configuration/SqlStudioOptions.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c2d0b52..e3214b7 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ Below is a code snippet with all possible configuration options: x.AuditLogDaysToKeep = 10; x.AiEnabled = true; x.AiApiKey = "**********"; - x.AiModel = "gpt-4"; + x.AiModel = "gpt-4o"; }) ``` @@ -83,7 +83,7 @@ You can also configure SqlStudio using `appsettings.json`. A configuration setti "AuditLogDaysToKeep": 10, "AiEnabled": true, "AiApiKey": "**********", - "AiModel": "gpt-4" + "AiModel": "gpt-4o" } } ``` @@ -99,13 +99,13 @@ There are three settings. - Enabled: default true - API key: AI buttons will be hidden, unless the key provided -- Model: You may choose any model available from OpenAI in Chat mode +- Model: You may choose any model available from OpenAI in Chat mode, default is gpt-4o ```csharp .AddSqlStudio(x => { x.AiEnabled = true; x.AiApiKey = "**********"; - x.AiModel = "gpt-4"; + x.AiModel = "gpt-4o"; }) ``` diff --git a/src/Gulla.Episerver.SqlStudio/Configuration/SqlStudioOptions.cs b/src/Gulla.Episerver.SqlStudio/Configuration/SqlStudioOptions.cs index dac4878..928f750 100644 --- a/src/Gulla.Episerver.SqlStudio/Configuration/SqlStudioOptions.cs +++ b/src/Gulla.Episerver.SqlStudio/Configuration/SqlStudioOptions.cs @@ -42,6 +42,6 @@ public class SqlStudioOptions public string AiApiKey { get; set; } - public string AiModel { get; set; } = "gpt-4"; + public string AiModel { get; set; } = "gpt-4o"; } }