|
18 | 18 | "google" "Google" |
19 | 19 | "azure" "Azure" |
20 | 20 | "deepseek" "DeepSeek" |
| 21 | + "litellm" "LiteLLM" |
| 22 | + "lmstudio" "LM Studio" |
| 23 | + "mistral" "Mistral" |
| 24 | + "moonshot" "Moonshot" |
21 | 25 | "openrouter" "OpenRouter" |
22 | 26 | "z-ai" "Z-AI" |
23 | 27 | "ollama" "Ollama"}) |
|
32 | 36 | "google" [{:key "api-key" :label "Enter API key"}] |
33 | 37 | "azure" [{:key "api-key" :label "Enter API key, URL & models"}] |
34 | 38 | "deepseek" [{:key "api-key" :label "Enter API key & models"}] |
| 39 | + "litellm" [{:key "api-key" :label "Enter API key, URL & models"}] |
| 40 | + "lmstudio" [{:key "api-key" :label "Enter models"}] |
| 41 | + "mistral" [{:key "api-key" :label "Enter API key & models"}] |
| 42 | + "moonshot" [{:key "api-key" :label "Enter API key & models"}] |
35 | 43 | "openrouter" [{:key "api-key" :label "Enter API key & models"}] |
36 | 44 | "z-ai" [{:key "api-key" :label "Enter API key & models"}]}) |
37 | 45 |
|
38 | 46 | (def ^:private provider-login-fields |
39 | 47 | {"google" [{:key "api-key" :label "API Key" :type "secret"}] |
40 | 48 | "deepseek" [{:key "api-key" :label "API Key" :type "secret"} |
41 | 49 | {:key "models" :label "Model names (comma-separated)" :type "text"}] |
| 50 | + "litellm" [{:key "api-key" :label "API Key" :type "secret"} |
| 51 | + {:key "url" :label "API URL (e.g. https://litellm.my-company.com)" :type "text"} |
| 52 | + {:key "models" :label "Model names (comma-separated)" :type "text"}] |
| 53 | + "lmstudio" [{:key "models" :label "Model names (comma-separated)" :type "text"}] |
| 54 | + "mistral" [{:key "api-key" :label "API Key" :type "secret"} |
| 55 | + {:key "models" :label "Model names (comma-separated)" :type "text"}] |
| 56 | + "moonshot" [{:key "api-key" :label "API Key" :type "secret"} |
| 57 | + {:key "models" :label "Model names (comma-separated)" :type "text"}] |
42 | 58 | "openrouter" [{:key "api-key" :label "API Key" :type "secret"} |
43 | 59 | {:key "models" :label "Model names (comma-separated)" :type "text"}] |
44 | 60 | "z-ai" [{:key "api-key" :label "API Key" :type "secret"} |
|
49 | 65 |
|
50 | 66 | (def ^:private provider-configs |
51 | 67 | {"deepseek" {:api "openai-chat" :url "https://api.deepseek.com"} |
| 68 | + "litellm" {:api "openai-responses"} |
| 69 | + "lmstudio" {:api "openai-chat" :url "http://localhost:1234" |
| 70 | + :completionUrlRelativePath "/v1/chat/completions" |
| 71 | + :httpClient {:version "http-1.1"}} |
| 72 | + "mistral" {:api "openai-chat" :url "https://api.mistral.ai/v1"} |
| 73 | + "moonshot" {:api "openai-chat" :url "https://api.kimi.com/coding/v1"} |
52 | 74 | "openrouter" {:api "openai-chat" :url "https://openrouter.ai/api/v1"} |
53 | | - "z-ai" {:api "openai-chat" :url "https://api.x.ai"} |
| 75 | + "z-ai" {:api "anthropic" :url "https://api.z.ai/api/anthropic"} |
54 | 76 | "azure" {:api "openai-chat"}}) |
55 | 77 |
|
56 | 78 | ;; --- Auth resolution --- |
|
0 commit comments