Skip to content

Commit ca5d67e

Browse files
committedAug 16, 2024
Only include context prompt if there are refs
1 parent 6b9f94d commit ca5d67e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/functions/execute-model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Example Queries (IMPORTANT: Phrasing doesn't have to match):
5656
"Do not include any additional information about the selected model in this first sentence - ONLY the name.",
5757
];
5858

59-
if (importantRefs) {
59+
if (importantRefs.length > 0) {
6060
content.push(
6161
"The user included the following context - you may find information in this context useful for your response:",
6262
JSON.stringify(importantRefs)

0 commit comments

Comments
 (0)
Failed to load comments.