forked from Shinonome/dots-hyprland
gpts: allow no api key
This commit is contained in:
@@ -13,6 +13,7 @@ const PROVIDERS = Object.assign({
|
||||
"description": getString('Ollama - Llama-3.2'),
|
||||
"base_url": 'http://localhost:11434/v1/chat/completions',
|
||||
"key_get_url": "",
|
||||
"requires_key": false,
|
||||
"key_file": "ollama_key.txt",
|
||||
"model": "llama3.2",
|
||||
},
|
||||
@@ -23,6 +24,7 @@ const PROVIDERS = Object.assign({
|
||||
"base_url": "http://localhost:11434/v1/chat/completions",
|
||||
"key_get_url": "",
|
||||
"key_file": "ollama_key.txt",
|
||||
"requires_key": false,
|
||||
"model": "deepseek-r1",
|
||||
},
|
||||
"ollama_gemma3": {
|
||||
@@ -32,6 +34,7 @@ const PROVIDERS = Object.assign({
|
||||
"base_url": "http://localhost:11434/v1/chat/completions",
|
||||
"key_get_url": "",
|
||||
"key_file": "ollama_key.txt",
|
||||
"requires_key": false,
|
||||
"model": "gemma3",
|
||||
},
|
||||
"openrouter": {
|
||||
@@ -40,6 +43,7 @@ const PROVIDERS = Object.assign({
|
||||
"description": getString('A unified interface for LLMs'),
|
||||
"base_url": "https://openrouter.ai/api/v1/chat/completions",
|
||||
"key_get_url": "https://openrouter.ai/keys",
|
||||
"requires_key": true,
|
||||
"key_file": "openrouter_key.txt",
|
||||
"model": "meta-llama/llama-3-70b-instruct",
|
||||
},
|
||||
@@ -49,6 +53,7 @@ const PROVIDERS = Object.assign({
|
||||
"description": getString('Official OpenAI API.\nPricing: Free for the first $5 or 3 months, whichever is less.'),
|
||||
"base_url": "https://api.openai.com/v1/chat/completions",
|
||||
"key_get_url": "https://platform.openai.com/api-keys",
|
||||
"requires_key": true,
|
||||
"key_file": "openai_key.txt",
|
||||
"model": "gpt-3.5-turbo",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user