Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

add gpt-4o aug 2024 release to built-in models, some work on create prompt

Dane Schneider337d4c7083c5
diff --git a/app/server/go.mod b/app/server/go.mod
index b29b577b..09339ccd 100644
--- a/app/server/go.mod
+++ b/app/server/go.mod
@@ -8,11 +8,11 @@ require (
github.com/gorilla/mux v1.8.1
github.com/pkg/errors v0.9.1
github.com/plandex/plandex/shared v0.0.0-00010101000000-000000000000
- github.com/sashabaranov/go-openai v1.27.0
+ github.com/sashabaranov/go-openai v1.28.1
)
require (
- github.com/dlclark/regexp2 v1.11.2 // indirect
+ github.com/dlclark/regexp2 v1.11.4 // indirect
github.com/go-toast/toast v0.0.0-20190211030409-01e6764cf0a4 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
@@ -27,13 +27,13 @@ require (
github.com/rivo/uniseg v0.4.7 // indirect
github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // indirect
go.uber.org/atomic v1.11.0 // indirect
- golang.org/x/image v0.18.0 // indirect
- golang.org/x/sys v0.22.0 // indirect
+ golang.org/x/image v0.19.0 // indirect
+ golang.org/x/sys v0.24.0 // indirect
)
require (
github.com/atotto/clipboard v0.1.4
- github.com/aws/aws-sdk-go v1.55.3
+ github.com/aws/aws-sdk-go v1.55.5
github.com/fatih/color v1.17.0
github.com/gen2brain/beeep v0.0.0-20240516210008-9c006672e7f4
github.com/golang-migrate/migrate/v4 v4.17.1
diff --git a/app/server/go.sum b/app/server/go.sum
index 13a90343..4a8993ba 100644
--- a/app/server/go.sum
+++ b/app/server/go.sum
@@ -6,15 +6,15 @@ github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migc
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
-github.com/aws/aws-sdk-go v1.55.3 h1:0B5hOX+mIx7I5XPOrjrHlKSDQV/+ypFZpIHOx5LOk3E=
-github.com/aws/aws-sdk-go v1.55.3/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
+github.com/aws/aws-sdk-go v1.55.5 h1:KKUZBfBoyqy5d3swXyiC7Q76ic40rYcbqH7qjh59kzU=
+github.com/aws/aws-sdk-go v1.55.5/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dhui/dktest v0.4.1 h1:/w+IWuDXVymg3IrRJCHHOkMK10m9aNVMOyD0X12YVTg=
github.com/dhui/dktest v0.4.1/go.mod h1:DdOqcUpL7vgyP4GlF3X3w7HbSlz8cEQzwewPveYEQbA=
-github.com/dlclark/regexp2 v1.11.2 h1:/u628IuisSTwri5/UKloiIsH8+qF2Pu7xEQX+yIKg68=
-github.com/dlclark/regexp2 v1.11.2/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
+github.com/dlclark/regexp2 v1.11.4 h1:rPYF9/LECdNymJufQKmri9gV604RvvABwgOA8un7yAo=
+github.com/dlclark/regexp2 v1.11.4/go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8=
github.com/docker/distribution v2.8.2+incompatible h1:T3de5rq0dB1j30rp0sA2rER+m322EBzniBPB6ZIzuh8=
github.com/docker/distribution v2.8.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
github.com/docker/docker v24.0.9+incompatible h1:HPGzNmwfLZWdxHqK9/II92pyi1EpYKsAqcl4G0Of9v0=
@@ -87,8 +87,8 @@ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/rs/cors v1.11.0 h1:0B9GE/r9Bc2UxRMMtymBkHTenPkHDv0CW4Y98GBY+po=
github.com/rs/cors v1.11.0/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
-github.com/sashabaranov/go-openai v1.27.0 h1:L3hO6650YUbKrbGUC6yCjsUluhKZ9h1/jcgbTItI8Mo=
-github.com/sashabaranov/go-openai v1.27.0/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
+github.com/sashabaranov/go-openai v1.28.1 h1:aREx6faUTeOZNMDTNGAY8B9vNmmN7qoGvDV0Ke2J1Mc=
+github.com/sashabaranov/go-openai v1.28.1/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
github.com/smacker/go-tree-sitter v0.0.0-20240625050157-a31a98a7c0f6 h1:mtD4ESyObQZnRVxHFcaYp2d7jMBDa4WJRXSB1Vszj+A=
github.com/smacker/go-tree-sitter v0.0.0-20240625050157-a31a98a7c0f6/go.mod h1:q99oHDsbP0xRwmn7Vmob8gbSMNyvJ83OauXPSuHQuKE=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
@@ -101,16 +101,16 @@ github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af h1:6yITBqGTE2lEeTPG0
github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af/go.mod h1:4F09kP5F+am0jAwlQLddpoMDM+iewkxxt6nxUQ5nq5o=
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
-golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
-golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
+golang.org/x/image v0.19.0 h1:D9FX4QWkLfkeqaC62SonffIIuYdOk/UE2XKUBgRIBIQ=
+golang.org/x/image v0.19.0/go.mod h1:y0zrRqlQRWQ5PXaYCOMLTW2fpsxZ8Qh9I/ohnInJEys=
golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU=
golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
-golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg=
+golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/tools v0.10.0 h1:tvDr/iQoUqNdohiYm0LmmKcBk+q86lb9EprIUFhHHGg=
golang.org/x/tools v0.10.0/go.mod h1:UJwyiVBsOA2uwvK/e5OY3GTpDUJriEd+/YlqAwLPmyM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
diff --git a/app/server/model/prompts/create.go b/app/server/model/prompts/create.go
index 1d3e6a0b..316d1340 100644
--- a/app/server/model/prompts/create.go
+++ b/app/server/model/prompts/create.go
@@ -85,7 +85,11 @@ const SysCreate = Identity + ` A plan is a set of files with an attached context
An exception to the above instructions on comments are if a file block is empty because you removed everything in it. In that case, leave a brief one-line comment starting with 'Plandex: removed' that says what was removed so that the file block isn't empty.
- In code blocks, include the *minimum amount of code* necessary to describe the suggested changes. Include only lines that are changing and lines that make it clear where the change should be applied. You can use the comment "// ... existing code ..." (adapted for the programming language) instead of including large sections from the original file in context in order to make it clear where changes should be applied. You *must not* include large sections of the original file unless it is absolutely necessary to make the suggested changes clear. Instead show only the code that is changing and the immediately surrounding code that is necessary to understand the changes. Use the comment "// ... existing code ..." (adapted for the programming language) to replace sections of code from the original file and denote where the existing code should be placed.
+
+
+ When you are updating an existing file in context: include the *minimum amount of code* necessary in code blocks to describe the suggested changes. Include only lines that are changing and lines that make it clear where the change should be applied. When updating an existing file in context, you can use the comment "// ... existing code ..." (adapted for the programming language) instead of including large sections from the original file in order to make it clear where changes should be applied. You *must not* include large sections of the original file unless it is absolutely necessary to make the suggested changes clear. Instead show only the code that is changing and the immediately surrounding code that is necessary to understand the changes. Use the comment "// ... existing code ..." (adapted for the programming language) to replace sections of code from the original file and denote where the existing code should be placed. Again, this only applies when you are updating an existing file in context. It does not apply when you are creating a new file. You MUST NOT use the comment "// ... existing code ..." (or any equivalent) when creating a new file.
+
+ Again, you ABSOLUTELY MUST *ONLY* USE the comment "// ... existing code ..." (or the equivalent in another programming language) if you are *updating* an existing file. DO NOT use it when you are creating a new file. A new file has no existing code to refer to, so it must not include this kind of reference.
Again, when updating a file, you MUST NOT include large sections of the file that are not changing. Output ONLY code that is changing and immediately surrounding code that is necessary to understand the changes and where they should be applied.
@@ -232,7 +236,9 @@ If you're making a plan, remember to label code blocks with the file path *exact
You MUST NOT include any other text in a code block label apart from the initial '- ' and the EXACT file path ONLY. DO NOT UNDER ANY CIRCUMSTANCES use a label like 'File path: src/main.rs' or 'src/main.rs: (Create this file)' or 'File to Create: src/main.rs' or 'File to Update: src/main.rs'. Instead use EXACTLY 'src/main.rs:'. DO NOT include any explanatory text in the code block label like 'src/main.rs: (Add a new function)'. It is EXTREMELY IMPORTANT that the code block label includes *only* the initial '- ', the file path, and NO OTHER TEXT whatsoever. If additional text apart from the initial '- ' and the exact file path is included in the code block label, the plan will not be parsed properly and you will have failed at the task of generating a usable plan.
-Always use triple backticks to start and end code blocks.
+Always use triple backticks to start and end code blocks.
+
+When updating an existing file in context, you can use the comment "// ... existing code ..." (adapted for the programming language) instead of including large sections from the original file in order to make it clear where changes should be applied. You MUST NOT use the comment "// ... existing code ..." (or any equivalent) when creating a new file.
Only list out subtasks once for the plan--after that, do not list or describe a subtask that can be implemented in code without including a code block that implements the subtask.
diff --git a/app/shared/ai_models.go b/app/shared/ai_models.go
index dba13705..6a6a946f 100644
--- a/app/shared/ai_models.go
+++ b/app/shared/ai_models.go
@@ -27,12 +27,12 @@ var fullCompatibilityExceptImage = ModelCompatibility{
var AvailableModels = []*AvailableModel{
{
- Description: "OpenAI's latest gpt-4o model, first released on 2024-05-13",
+ Description: "OpenAI's gpt-4o model, pinned to version released on 2024-08-06",
DefaultMaxConvoTokens: 10000,
- DefaultReservedOutputTokens: 4096,
+ DefaultReservedOutputTokens: 16384,
BaseModelConfig: BaseModelConfig{
Provider: ModelProviderOpenAI,
- ModelName: openai.GPT4o,
+ ModelName: "gpt-4o-2024-08-06",
MaxTokens: 128000,
ApiKeyEnvVar: OpenAIEnvVar,
ModelCompatibility: fullCompatibility,
@@ -53,25 +53,25 @@ var AvailableModels = []*AvailableModel{
},
},
{
- Description: "OpenAI's latest gpt-4-turbo model, first released on 2024-04-09",
+ Description: "OpenAI's latest gpt-4-turbo model",
DefaultMaxConvoTokens: 10000,
DefaultReservedOutputTokens: 4096,
BaseModelConfig: BaseModelConfig{
Provider: ModelProviderOpenAI,
- ModelName: openai.GPT4Turbo,
+ ModelName: openai.GPT4o,
MaxTokens: 128000,
ApiKeyEnvVar: OpenAIEnvVar,
ModelCompatibility: fullCompatibilityExceptImage,
BaseUrl: OpenAIV1BaseUrl,
- }},
-
+ },
+ },
{
- Description: "OpenAI's gpt-4-turbo, pinned to version released on 2024-04-09",
+ Description: "OpenAI's latest gpt-4-turbo model",
DefaultMaxConvoTokens: 10000,
DefaultReservedOutputTokens: 4096,
BaseModelConfig: BaseModelConfig{
Provider: ModelProviderOpenAI,
- ModelName: openai.GPT4Turbo20240409,
+ ModelName: openai.GPT4Turbo,
MaxTokens: 128000,
ApiKeyEnvVar: OpenAIEnvVar,
ModelCompatibility: fullCompatibilityExceptImage,
@@ -79,57 +79,38 @@ var AvailableModels = []*AvailableModel{
},
},
{
- Description: "OpenAI's gpt-4 model",
- DefaultMaxConvoTokens: 2500,
- DefaultReservedOutputTokens: 1000,
- BaseModelConfig: BaseModelConfig{
- Provider: ModelProviderOpenAI,
- ModelName: openai.GPT4,
- MaxTokens: 8000,
- ApiKeyEnvVar: OpenAIEnvVar,
- ModelCompatibility: ModelCompatibility{
- IsOpenAICompatible: true,
- HasJsonResponseMode: false,
- HasStreaming: true,
- HasFunctionCalling: true,
- HasStreamingFunctionCalls: true,
- },
- BaseUrl: OpenAIV1BaseUrl,
- },
- },
- {
- Description: "OpenAI's latest gpt-3.5-turbo model",
- DefaultMaxConvoTokens: 5000,
- DefaultReservedOutputTokens: 2000,
+ Description: "OpenAI's gpt-4o-mini model, pinned to version released on 2024-07-18",
+ DefaultMaxConvoTokens: 10000,
+ DefaultReservedOutputTokens: 16384,
BaseModelConfig: BaseModelConfig{
Provider: ModelProviderOpenAI,
- ModelName: openai.GPT3Dot5Turbo,
- MaxTokens: 16385,
+ ModelName: "gpt-4o-mini-2024-07-18",
+ MaxTokens: 128000,
ApiKeyEnvVar: OpenAIEnvVar,
- ModelCompatibility: fullCompatibilityExceptImage,
+ ModelCompatibility: fullCompatibility,
BaseUrl: OpenAIV1BaseUrl,
},
},
{
- Description: "OpenAI's gpt-3.5-turbo, pinned to version released on 2024-01-25",
- DefaultMaxConvoTokens: 5000,
- DefaultReservedOutputTokens: 2000,
+ Description: "OpenAI's latest gpt-4o-mini model",
+ DefaultMaxConvoTokens: 10000,
+ DefaultReservedOutputTokens: 16384,
BaseModelConfig: BaseModelConfig{
Provider: ModelProviderOpenAI,
- ModelName: openai.GPT3Dot5Turbo0125,
- MaxTokens: 16385,
+ ModelName: "gpt-4o-mini",
+ MaxTokens: 128000,
ApiKeyEnvVar: OpenAIEnvVar,
- ModelCompatibility: fullCompatibilityExceptImage,
+ ModelCompatibility: fullCompatibility,
BaseUrl: OpenAIV1BaseUrl,
},
},
{
- Description: "OpenAI's gpt-3.5-turbo, pinned to version released on 2023-11-06",
+ Description: "OpenAI's latest gpt-3.5-turbo model",
DefaultMaxConvoTokens: 5000,
DefaultReservedOutputTokens: 2000,
BaseModelConfig: BaseModelConfig{
Provider: ModelProviderOpenAI,
- ModelName: openai.GPT3Dot5Turbo1106,
+ ModelName: openai.GPT3Dot5Turbo,
MaxTokens: 16385,
ApiKeyEnvVar: OpenAIEnvVar,
ModelCompatibility: fullCompatibilityExceptImage,
@@ -298,8 +279,10 @@ var OpenRouterClaude3Dot5SonnetGPT4TurboModelPack ModelPack
var OpenRouterClaude3Dot5SonnetModelPack ModelPack
var TogetherMixtral8x22BModelPack ModelPack
var Gpt4oLatestModelPack ModelPack
+var Gpt4o8062024ModelPack ModelPack
var BuiltInModelPacks = []*ModelPack{
+ &Gpt4o8062024ModelPack,
&Gpt4oLatestModelPack,
&Gpt4TurboLatestModelPack,
&OpenRouterClaude3Dot5SonnetModelPack,
@@ -396,9 +379,65 @@ func init() {
AvailableModelsByName[model.ModelName] = model
}
+ Gpt4o8062024ModelPack = ModelPack{
+ Name: "gpt-4o-2024-08-06",
+ Description: "Uses OpenAI's gpt-4o model, pinned to version released on 2024-08-06, for heavy lifting, and latest version of gpt-4o-mini for lighter tasks.",
+ Planner: PlannerRoleConfig{
+ ModelRoleConfig: ModelRoleConfig{
+ Role: ModelRolePlanner,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-2024-08-06"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRolePlanner].Temperature,
+ TopP: DefaultConfigByRole[ModelRolePlanner].TopP,
+ },
+ PlannerModelConfig: getPlannerModelConfig("gpt-4o-2024-08-06"),
+ },
+ PlanSummary: ModelRoleConfig{
+ Role: ModelRolePlanSummary,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-2024-08-06"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRolePlanSummary].Temperature,
+ TopP: DefaultConfigByRole[ModelRolePlanSummary].TopP,
+ },
+ Builder: ModelRoleConfig{
+ Role: ModelRoleBuilder,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-2024-08-06"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRoleBuilder].Temperature,
+ TopP: DefaultConfigByRole[ModelRoleBuilder].TopP,
+ },
+ Namer: ModelRoleConfig{
+ Role: ModelRoleName,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRoleName].Temperature,
+ TopP: DefaultConfigByRole[ModelRoleName].TopP,
+ },
+ CommitMsg: ModelRoleConfig{
+ Role: ModelRoleCommitMsg,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRoleCommitMsg].Temperature,
+ TopP: DefaultConfigByRole[ModelRoleCommitMsg].TopP,
+ },
+ ExecStatus: ModelRoleConfig{
+ Role: ModelRoleExecStatus,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-2024-08-06"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRoleExecStatus].Temperature,
+ TopP: DefaultConfigByRole[ModelRoleExecStatus].TopP,
+ },
+ Verifier: &ModelRoleConfig{
+ Role: ModelRoleVerifier,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-2024-08-06"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRoleVerifier].Temperature,
+ TopP: DefaultConfigByRole[ModelRoleVerifier].TopP,
+ },
+ AutoFix: &ModelRoleConfig{
+ Role: ModelRoleAutoFix,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-2024-08-06"].BaseModelConfig,
+ Temperature: DefaultConfigByRole[ModelRoleAutoFix].Temperature,
+ TopP: DefaultConfigByRole[ModelRoleAutoFix].TopP,
+ },
+ }
+
Gpt4oLatestModelPack = ModelPack{
Name: "gpt-4o-latest",
- Description: "Uses OpenAI's latest gpt-4o model, first released on 2024-05-13, for heavy lifting, and latest version of gpt-3.5-turbo for lighter tasks.",
+ Description: "Uses OpenAI's latest gpt-4o model for heavy lifting, and latest version of gpt-4o-mini for lighter tasks.",
Planner: PlannerRoleConfig{
ModelRoleConfig: ModelRoleConfig{
Role: ModelRolePlanner,
@@ -422,13 +461,13 @@ func init() {
},
Namer: ModelRoleConfig{
Role: ModelRoleName,
- BaseModelConfig: AvailableModelsByName[openai.GPT3Dot5Turbo].BaseModelConfig,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
Temperature: DefaultConfigByRole[ModelRoleName].Temperature,
TopP: DefaultConfigByRole[ModelRoleName].TopP,
},
CommitMsg: ModelRoleConfig{
Role: ModelRoleCommitMsg,
- BaseModelConfig: AvailableModelsByName[openai.GPT3Dot5Turbo].BaseModelConfig,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
Temperature: DefaultConfigByRole[ModelRoleCommitMsg].Temperature,
TopP: DefaultConfigByRole[ModelRoleCommitMsg].TopP,
},
@@ -454,7 +493,7 @@ func init() {
Gpt4TurboLatestModelPack = ModelPack{
Name: "gpt-4-turbo-latest",
- Description: "Uses latest version of OpenAI gpt-4-turbo model (first released on 2024-04-09) for heavy lifting, latest version of gpt-3.5-turbo for lighter tasks.",
+ Description: "Uses latest version of OpenAI gpt-4-turbo model (first released on 2024-04-09) for heavy lifting, latest version of gpt-4o-mini for lighter tasks.",
Planner: PlannerRoleConfig{
ModelRoleConfig: ModelRoleConfig{
Role: ModelRolePlanner,
@@ -478,13 +517,13 @@ func init() {
},
Namer: ModelRoleConfig{
Role: ModelRoleName,
- BaseModelConfig: AvailableModelsByName[openai.GPT3Dot5Turbo].BaseModelConfig,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
Temperature: DefaultConfigByRole[ModelRoleName].Temperature,
TopP: DefaultConfigByRole[ModelRoleName].TopP,
},
CommitMsg: ModelRoleConfig{
Role: ModelRoleCommitMsg,
- BaseModelConfig: AvailableModelsByName[openai.GPT3Dot5Turbo].BaseModelConfig,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
Temperature: DefaultConfigByRole[ModelRoleCommitMsg].Temperature,
TopP: DefaultConfigByRole[ModelRoleCommitMsg].TopP,
},
@@ -498,7 +537,7 @@ func init() {
OpenRouterClaude3Dot5SonnetGPT4TurboModelPack = ModelPack{
Name: "anthropic-claude-3.5-sonnet-gpt-4o",
- Description: "Uses Anthropic's Claude 3.5 Sonnet model (via OpenRouter) for planning, summarization, and auto-continue, OpenAI gpt-4o for builds, and gpt-3.5-turbo for lighter tasks.",
+ Description: "Uses Anthropic's Claude 3.5 Sonnet model (via OpenRouter) for planning, summarization, and auto-continue, OpenAI gpt-4o for builds, and gpt-4o-mini for lighter tasks.",
Planner: PlannerRoleConfig{
ModelRoleConfig: ModelRoleConfig{
Role: ModelRolePlanner,
@@ -522,13 +561,13 @@ func init() {
},
Namer: ModelRoleConfig{
Role: ModelRoleName,
- BaseModelConfig: AvailableModelsByName[openai.GPT3Dot5Turbo].BaseModelConfig,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
Temperature: DefaultConfigByRole[ModelRoleName].Temperature,
TopP: DefaultConfigByRole[ModelRoleName].TopP,
},
CommitMsg: ModelRoleConfig{
Role: ModelRoleCommitMsg,
- BaseModelConfig: AvailableModelsByName[openai.GPT3Dot5Turbo].BaseModelConfig,
+ BaseModelConfig: AvailableModelsByName["gpt-4o-mini"].BaseModelConfig,
Temperature: DefaultConfigByRole[ModelRoleCommitMsg].Temperature,
TopP: DefaultConfigByRole[ModelRoleCommitMsg].TopP,
},