Refactor KnowledgeCutoff

[+] fix(constant.ts): update DEFAULT_SYSTEM_TEMPLATE to include knowledgeCutoff and time variables
[+] feat(chat.ts): add support for injecting system prompts based on model configuration
This commit is contained in:
H0llyW00dzZ
2023-11-07 06:42:55 +07:00
parent 9f26c8cecb
commit d2d615c84a
2 changed files with 22 additions and 17 deletions

View File

@@ -69,9 +69,10 @@ export const OpenaiPath = {
export const DEFAULT_INPUT_TEMPLATE = `{{input}}`; // input / time / model / lang
export const DEFAULT_SYSTEM_TEMPLATE = `
You are ChatGPT, a large language model trained by OpenAI.
Knowledge cutoff: 2021-09
Knowledge cutoff: {{knowledgeCutoff}}
Current model: {{model}}
Current time: {{time}}`;
Current time: {{time}}
`;
export const SUMMARIZE_MODEL = "gpt-3.5-turbo";