feat: CURRENT_DATE, USER_NAME prompt variable support
This commit is contained in:
1 parent
7674229e3a
commit
9dfa334a83
5 files changed
+73
-27
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { OPENAI_API_BASE_URL } from '$lib/constants';
|
||||
import { promptTemplate } from '$lib/utils';
|
||||
import { titleGenerationTemplate } from '$lib/utils';
|
||||
import { type Model, models, settings } from '$lib/stores';
|
||||
|
||||
export const getOpenAIConfig = async (token: string = '') => {
|
||||
@@ -340,7 +340,7 @@ export const generateTitle = async (
|
||||
) => {
|
||||
let error = null;
|
||||
|
||||
template = promptTemplate(template, prompt);
|
||||
template = titleGenerationTemplate(template, prompt);
|
||||
|
||||
console.log(template);
|
||||
|
||||
|
||||
Reference in new issue
Block a user