File size: 373 Bytes
c39ed26
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { getSettings } from "./pubSub";

export function getSystemPrompt(searchResults: string) {
  return getSettings()
    .systemPrompt.replace("{{searchResults}}", searchResults)
    .replace(
      "{{dateTime}}",
      new Intl.DateTimeFormat("en-CA", {
        year: "numeric",
        month: "2-digit",
        day: "2-digit",
      }).format(new Date()),
    );
}