From 8ea98c2c8d636209954a267116eb03ab13217ef8 Mon Sep 17 00:00:00 2001 From: HugoCasa Date: Mon, 20 Nov 2023 12:54:22 +0100 Subject: [PATCH] feat: upgrade to gpt-4-turbo (#2655) --- .../lib/components/copilot/ScriptGen.svelte | 2 +- .../components/copilot/TestOpenaiKey.svelte | 2 +- frontend/src/lib/components/copilot/flow.ts | 23 +- frontend/src/lib/components/copilot/lib.ts | 19 +- .../lib/components/copilot/prompts/edit.yaml | 13 +- .../components/copilot/prompts/editPrompt.ts | 4 +- .../lib/components/copilot/prompts/fix.yaml | 13 +- .../components/copilot/prompts/fixPrompt.ts | 4 +- .../lib/components/copilot/prompts/gen.yaml | 101 +++- .../components/copilot/prompts/genPrompt.ts | 28 +- .../(logged)/workspace_settings/+page.svelte | 4 +- llm/requirements.txt | 2 +- llm/sample_answers.yaml | 520 ++++++++++-------- llm/sample_queries.yaml | 2 +- llm/src/gen_samples.py | 8 +- 15 files changed, 431 insertions(+), 314 deletions(-) diff --git a/frontend/src/lib/components/copilot/ScriptGen.svelte b/frontend/src/lib/components/copilot/ScriptGen.svelte index 53a74129fd..05f7af1b55 100644 --- a/frontend/src/lib/components/copilot/ScriptGen.svelte +++ b/frontend/src/lib/components/copilot/ScriptGen.svelte @@ -368,7 +368,7 @@ Context: {lang === 'graphql' ? 'GraphQL' : 'DB'} schema

- In order to better generate the script, we pass the selected schema to GPT-4. + In order to better generate the script, we pass the selected schema to GPT-4-turbo. {#if dbSchema.lang !== 'graphql' && (dbSchema.schema?.public || dbSchema.schema?.PUBLIC || dbSchema.schema?.dbo)} diff --git a/frontend/src/lib/components/copilot/TestOpenaiKey.svelte b/frontend/src/lib/components/copilot/TestOpenaiKey.svelte index 779866d11a..9499a30cf7 100644 --- a/frontend/src/lib/components/copilot/TestOpenaiKey.svelte +++ b/frontend/src/lib/components/copilot/TestOpenaiKey.svelte @@ -8,7 +8,7 @@