diff --git a/waspc/cli/src/Wasp/Cli/Command/CreateNewProject/AI.hs b/waspc/cli/src/Wasp/Cli/Command/CreateNewProject/AI.hs index 27c0f9fba..ff1d2c349 100644 --- a/waspc/cli/src/Wasp/Cli/Command/CreateNewProject/AI.hs +++ b/waspc/cli/src/Wasp/Cli/Command/CreateNewProject/AI.hs @@ -57,7 +57,9 @@ createNewProjectInteractiveOnDisk waspProjectDir appName = do [ Interactive.Option "gpt-4 (planning) + gpt-3.5-turbo (coding)" (Just "Ok results. Cheap and fast. Best cost/benefit ratio.") - (ChatGPT.GPT_4, ChatGPT.GPT_3_5_turbo), + -- NOTE: We are still using 0613 for now, even though it will get deprecated in June 2023, + -- because 0125 returns files with newlines missing. + (ChatGPT.GPT_4, ChatGPT.GPT_3_5_turbo_0613), Interactive.Option "gpt-4 (planning) + gpt-4-turbo-preview (coding)" (Just "Possibly better results, but somewhat slower and somewhat more expensive (~2-3x).") diff --git a/waspc/src/Wasp/AI/GenerateNewProject/Common.hs b/waspc/src/Wasp/AI/GenerateNewProject/Common.hs index 2e990b096..0a5abefc3 100644 --- a/waspc/src/Wasp/AI/GenerateNewProject/Common.hs +++ b/waspc/src/Wasp/AI/GenerateNewProject/Common.hs @@ -153,7 +153,9 @@ codingChatGPTParams projectDetails = GPT._temperature = Just $ fromMaybe 0.7 (projectDefaultGptTemperature $ _projectConfig projectDetails) } where - defaultCodingGptModel = GPT.GPT_3_5_turbo + -- NOTE: We are still using 0613 for now, even though it will get deprecated in June 2023, + -- because 0125 returns files with newlines missing. + defaultCodingGptModel = GPT.GPT_3_5_turbo_0613 planningChatGPTParams :: NewProjectDetails -> ChatGPTParams planningChatGPTParams projectDetails = diff --git a/waspc/src/Wasp/AI/OpenAI/ChatGPT.hs b/waspc/src/Wasp/AI/OpenAI/ChatGPT.hs index 9c21219f3..6c176f32f 100644 --- a/waspc/src/Wasp/AI/OpenAI/ChatGPT.hs +++ b/waspc/src/Wasp/AI/OpenAI/ChatGPT.hs @@ -91,6 +91,7 @@ data Model GPT_3_5_turbo -- Alias model | GPT_3_5_turbo_0125 | GPT_3_5_turbo_1106 + | GPT_3_5_turbo_0613 | -- GPT_4_turbo_Preview -- Alias model | GPT_4_0125_Preview @@ -111,6 +112,7 @@ modelOpenAiId = \case GPT_3_5_turbo -> "gpt-3.5-turbo" GPT_3_5_turbo_0125 -> "gpt-3.5-turbo-0125" GPT_3_5_turbo_1106 -> "gpt-3.5-turbo-1106" + GPT_3_5_turbo_0613 -> "gpt-3.5-turbo-0613" GPT_4_turbo_Preview -> "gpt-4-turbo-preview" GPT_4_0125_Preview -> "gpt-4-0125-preview" GPT_4_1106_Preview -> "gpt-4-1106-preview"