Remove unused fields, refine model translation (#62)

* Remove unused ScenarioVariantCell fields

* Refine deriveNewConstructFn

* Fix prettier
This commit is contained in:
arcticfly
2023-07-19 13:59:11 -07:00
committed by GitHub
parent 4fa2dffbcb
commit 58892d8b63
4 changed files with 21 additions and 53 deletions

View File

@@ -49,12 +49,16 @@ const getPromptFunctionForNewModel = async (
getApiShapeForModel(originalModel),
null,
2,
)}\n\nThe prompt variable has already been declared.}`,
)}`,
},
{
role: "user",
content: `Return the prompt constructor function for ${newModel} given the following prompt constructor function for ${originalModel}:\n---\n${originalVariant.constructFn}`,
},
{
role: "user",
content: "The prompt variable has already been declared, so do not declare it again.",
},
],
functions: [
{