remove the default value for PromptVariant.model

We should be explicit about setting the appropriate model so it always matches the constructFn.
This commit is contained in:
Kyle Corbitt
2023-07-14 17:43:52 -07:00
parent 0c3bdbe4f2
commit 3b99b7bd2b
4 changed files with 19 additions and 10 deletions

View File

@@ -36,6 +36,7 @@ await prisma.promptVariant.createMany({
experimentId,
label: "Prompt Variant 1",
sortIndex: 0,
model: "gpt-3.5-turbo-0613",
constructFn: `prompt = {
model: "gpt-3.5-turbo-0613",
messages: [{ role: "user", content: "What is the capital of {{country}}?" }],
@@ -46,6 +47,7 @@ await prisma.promptVariant.createMany({
experimentId,
label: "Prompt Variant 2",
sortIndex: 1,
model: "gpt-3.5-turbo-0613",
constructFn: `prompt = {
model: "gpt-3.5-turbo-0613",
messages: [