Просмотр исходного кода

Use public Pollinations image URLs

master
nano 5 дней назад
Родитель
Сommit
dc5bb7a851
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      app/views/Posts/edit.asp

+ 1
- 1
app/views/Posts/edit.asp Просмотреть файл

@@ -74,7 +74,7 @@
aiButton.addEventListener('click', function () {
var prompt = window.prompt('Describe the image to generate with AI');
if (!prompt) return;
var url = 'https://gen.pollinations.ai/image/' + encodeURIComponent(prompt);
var url = 'https://pollinations.ai/p/' + encodeURIComponent(prompt);
var range = quill.getSelection(true) || { index: quill.getLength() };
quill.insertEmbed(range.index, 'image', url, Quill.sources.USER);
quill.insertText(range.index + 1, '\n', Quill.sources.SILENT);


Загрузка…
Отмена
Сохранить

Powered by TurnKey Linux.