clearPromptAPI method added

This commit is contained in:
Mic 2025-09-07 19:55:00 +02:00
parent f973f8b8d0
commit d4f7cf5e65

View file

@ -587,3 +587,10 @@ export async function savePrompt(prompt) {
await setDefaultPromptsProperties(defaultPrompts); await setDefaultPromptsProperties(defaultPrompts);
} }
} }
export async function clearPromptAPI(id){
let _prompt = await loadPrompt(id);
_prompt.api_type = "";
_prompt.api_model = "";
await savePrompt(_prompt);
}