This commit is contained in:
Dyxang 2024-11-04 20:48:59 +08:00
parent 8b6566ac59
commit 56bdc803d6
No known key found for this signature in database
GPG key ID: 5573F57321747E5C
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
const GPT_MODELS = ["gpt-4o-mini", "chatgpt-4o-latest", "gpt-4o", "gpt-4-turbo", "gpt-4", "gpt-3.5-turbo"];
const SYSTEM_MESSAGE = "I'm working on my fantasy map.";
function geneateWithAi(defaultPrompt, onApply) {
function generateWithAi(defaultPrompt, onApply) {
updateValues();
$("#aiGenerator").dialog({
@ -26,8 +26,8 @@ function geneateWithAi(defaultPrompt, onApply) {
}
});
if (modules.geneateWithAi) return;
modules.geneateWithAi = true;
if (modules.generateWithAi) return;
modules.generateWithAi = true;
function updateValues() {
byId("aiGeneratorResult").value = "";

View file

@ -160,7 +160,7 @@ function editNotes(id, name) {
}
};
geneateWithAi(prompt, onApply);
generateWithAi(prompt, onApply);
}
function downloadLegends() {