Spaces:
Running
Running
File size: 391 Bytes
16b7924 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import { getSettings } from "./pubSub";
export function getSystemPrompt(searchResults: string) {
const currentDate = new Intl.DateTimeFormat("en-CA", {
year: "numeric",
month: "2-digit",
day: "2-digit",
}).format(new Date());
return getSettings()
.systemPrompt.replace("{{searchResults}}", searchResults)
.replace(/{{dateTime}}|{{currentDate}}/g, currentDate);
}
|