mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
feat - ai generation - improve prompt
This commit is contained in:
parent
50bf3803c8
commit
ab32a8a82f
2 changed files with 4 additions and 3 deletions
|
|
@ -147,9 +147,9 @@ function editNotes(id, name) {
|
|||
function openAiGenerator() {
|
||||
const note = notes.find(note => note.id === notesSelect.value);
|
||||
|
||||
let prompt = `Respond with detailed description. Format to html, respond with content div. Remove h tags. Use simple dry language. Invent facts, names and details.`;
|
||||
let prompt = `Respond with description. Use simple dry language. Invent facts, names and details. Split to paragraphs and format to HTML. Remove h tags, remove markdown.`;
|
||||
if (note?.name) prompt += ` Name: ${note.name}.`;
|
||||
if (note?.legend) prompt += ` Embed data: ${note.legend}`;
|
||||
if (note?.legend) prompt += ` Data: ${note.legend}`;
|
||||
|
||||
const onApply = result => {
|
||||
notesLegend.innerHTML = result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue