mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-23 23:29:31 +01:00
feat: add {{prompt:start:length}} and {{prompt:end:length}} to title gen
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { OPENAI_API_BASE_URL } from '$lib/constants';
|
||||
import { templatePrompt } from '$lib/utils';
|
||||
|
||||
export const getOpenAIUrls = async (token: string = '') => {
|
||||
let error = null;
|
||||
@@ -273,7 +274,7 @@ export const generateTitle = async (
|
||||
) => {
|
||||
let error = null;
|
||||
|
||||
template = template.replace(/{{prompt}}/g, prompt);
|
||||
template = templatePrompt(template, prompt);
|
||||
|
||||
console.log(template);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user