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 { OLLAMA_API_BASE_URL } from '$lib/constants';
|
||||
import { promptTemplate } from '$lib/utils';
|
||||
import { titleGenerationTemplate } from '$lib/utils';
|
||||
|
||||
export const getOllamaConfig = async (token: string = '') => {
|
||||
let error = null;
|
||||
@@ -212,7 +212,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