Skip to content

Commit

Permalink
Only include context prompt if there are refs
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEtco committed Aug 16, 2024
1 parent 6b9f94d commit ca5d67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/execute-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Example Queries (IMPORTANT: Phrasing doesn't have to match):
"Do not include any additional information about the selected model in this first sentence - ONLY the name.",
];

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

0 comments on commit ca5d67e

Please sign in to comment.