Define refinement actions in the model providers (#87)

* Add descriptions of fields in llama 2 input schema

* Let GPT-4 know when the provider stays the same

* Allow refetching in the event of any errors

* Define refinement actions in model providers

* Fix prettier
This commit is contained in:
arcticfly
2023-07-23 17:37:08 -07:00
committed by GitHub
parent 3dbb06ec00
commit 2b2e0ab8ee
11 changed files with 346 additions and 307 deletions

View File

@@ -74,6 +74,11 @@ const requestUpdatedPromptFunction = async (
2,
)}`,
});
} else {
messages.push({
role: "user",
content: `The provider is the same as the old provider: ${originalModel.provider}`,
});
}
}
if (instructions) {