ui : add Z.ai backend preset

Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
This commit is contained in:
Aleksander Grygier
2026-09-16 21:26:15 +02:00
parent b2c27a73b0
commit 7470533951
@@ -97,6 +97,14 @@ export const BACKEND_PRESETS: readonly BackendPreset[] = [
name: 'Kimi', name: 'Kimi',
protocol: 'openai' protocol: 'openai'
}, },
{
baseUrl: 'https://api.z.ai/api/paas/v4',
chatPath: '/chat/completions',
id: 'zai',
modelsPath: '/models',
name: 'Z.ai',
protocol: 'openai'
},
{ {
baseUrl: 'https://api.openai.com', baseUrl: 'https://api.openai.com',
// newer OpenAI models reject max_tokens // newer OpenAI models reject max_tokens