clearPromptAPI method added
This commit is contained in:
parent
f973f8b8d0
commit
d4f7cf5e65
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue