🐛 fix bug in edit prompt
This commit is contained in:
parent
1d6b86708c
commit
63da98591e
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ const osModelsEditPrompt: PromptTemplate = (history, otherData) => {
|
|||
}
|
||||
|
||||
// Use a different prompt when there's neither prefix nor suffix
|
||||
if (otherData.prefix.trim() === "" && otherData.suffix.trim() === "") {
|
||||
if (otherData.prefix?.trim() === "" && otherData.suffix?.trim() === "") {
|
||||
return [
|
||||
{
|
||||
role: "user",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue