refactor: ollama generation

This commit is contained in:
Azgaar 2025-06-14 15:20:01 +02:00
parent fe2fa6d6b8
commit bba3587e50
3 changed files with 81 additions and 254 deletions

View file

@ -4978,16 +4978,19 @@
Temperature:
<input id="aiGeneratorTemperature" type="number" min="-1" max="2" step=".1" class="icon-key" />
</label>
<label for="aiGeneratorKey" >Key:
<input id="aiGeneratorKey" placeholder="Enter API key" class="icon-key" />
<label for="aiGeneratorKey"
>Key:
<input
id="aiGeneratorKey"
placeholder="Enter API key"
class="icon-key"
data-tip="Enter API key. Note: the Generator doesn't store the key or any generated data"
/>
<button
id="aiGeneratorKeyHelp"
class="icon-help-circled"
data-tip="Open provider's website to get the API key there. Note: the Map Generator doesn't store the key or any generated data"
data-tip="Click to see the usage instructions"
/>
<div id="ollamaHint" style="display: none; font-size: 0.85em; color: #999; margin-top: 0.5em;">
Using Ollama requires it to be running locally on your machine at http://localhost:11434 beside azgaar you would not be able to use ollama if you are using azgaar online in the oficial website
</div>
</label>
</div>
</div>