Merge branch 'main' into hosted

This commit is contained in:
Abi Raja 2024-04-16 16:34:00 -04:00
commit c6b04aefbe
3 changed files with 10 additions and 9 deletions

View File

@ -15,8 +15,9 @@ Supported stacks:
Supported AI models:
- GPT-4 Vision
- Claude 3 Sonnet (faster, and on par or better than GPT-4 vision for many inputs)
- GPT-4 Turbo (Apr 2024) - Best model
- GPT-4 Vision (Nov 2023) - Good model that's better than GPT-4 Turbo on some inputs
- Claude 3 Sonnet - Faster, and on par or better than GPT-4 vision for many inputs
- DALL-E 3 for image generation
See the [Examples](#-examples) section below for more demos.

View File

@ -74,7 +74,7 @@ function App({ navbarComponent }: Props) {
isImageGenerationEnabled: true,
editorTheme: EditorTheme.COBALT,
generatedCodeConfig: Stack.HTML_TAILWIND,
codeGenerationModel: CodeGenerationModel.GPT_4_VISION,
codeGenerationModel: CodeGenerationModel.GPT_4_TURBO_2024_04_09,
// Only relevant for hosted version
isTermOfServiceAccepted: false,
},

View File

@ -1,7 +1,7 @@
// Keep in sync with backend (llm.py)
export enum CodeGenerationModel {
GPT_4_VISION = "gpt_4_vision",
GPT_4_TURBO_2024_04_09 = "gpt-4-turbo-2024-04-09",
GPT_4_VISION = "gpt_4_vision",
CLAUDE_3_SONNET = "claude_3_sonnet",
}
@ -13,15 +13,15 @@ export const CODE_GENERATION_MODEL_DESCRIPTIONS: {
isPaid: boolean;
};
} = {
"gpt-4-turbo-2024-04-09": {
name: "GPT-4 Turbo (Apr 2024)",
inBeta: false,
isPaid: false,
},
gpt_4_vision: {
name: "GPT-4 Vision (Nov 2023)",
inBeta: false,
isPaid: false,
},
claude_3_sonnet: { name: "Claude 3 Sonnet", inBeta: false, isPaid: false },
"gpt-4-turbo-2024-04-09": {
name: "GPT-4 Turbo (Apr 2024)",
inBeta: false,
isPaid: false,
},
};