Update gpt/index.html

This commit is contained in:
2026-05-11 09:26:45 +02:00
parent efa7906ea3
commit 1d7bda2ecc
+12 -6
View File
@@ -505,12 +505,18 @@ async function testConnection() {
PRESETS (CLEAN) PRESETS (CLEAN)
============================================ */ ============================================ */
document.getElementById('presetSelect').addEventListener('change', function () { document.getElementById('presetSelect').addEventListener('change', function () {
const presets = { const presets = {
local: { catgpt: {
endpoint: 'http://localhost:4891/v1/chat/completions', endpoint: 'http://192.168.254.169:4891/v1/chat/completions',
model: 'local-model', model: 'cat-gpt',
type: 'openai' type: 'openai'
}, },
local: {
endpoint: 'http://localhost:4891/v1/chat/completions',
model: 'local-model',
type: 'openai'
},
openai: { openai: {
endpoint: 'https://api.openai.com/v1/chat/completions', endpoint: 'https://api.openai.com/v1/chat/completions',
model: 'gpt-4o-mini', model: 'gpt-4o-mini',