Skip to content

Commit fe39f57

Browse files
committed
feat: add LiteLLM as AI gateway provider
1 parent 08eeecb commit fe39f57

7 files changed

Lines changed: 747 additions & 2 deletions

File tree

apps/sim/components/icons.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4335,6 +4335,19 @@ export function VllmIcon(props: SVGProps<SVGSVGElement>) {
43354335
)
43364336
}
43374337

4338+
export function LitellmIcon(props: SVGProps<SVGSVGElement>) {
4339+
return (
4340+
<svg {...props} fill='none' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>
4341+
<title>LiteLLM</title>
4342+
<rect width='24' height='24' rx='4' fill='#1A56DB' />
4343+
<path
4344+
d='M6 7h2v10H6V7zm4 0h2v8h4v2h-6V7z'
4345+
fill='white'
4346+
/>
4347+
</svg>
4348+
)
4349+
}
4350+
43384351
export function PosthogIcon(props: SVGProps<SVGSVGElement>) {
43394352
return (
43404353
<svg

apps/sim/lib/core/config/env.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ export const env = createEnv({
121121
OLLAMA_URL: z.string().url().optional(), // Ollama local LLM server URL
122122
VLLM_BASE_URL: z.string().url().optional(), // vLLM self-hosted base URL (OpenAI-compatible)
123123
VLLM_API_KEY: z.string().optional(), // Optional bearer token for vLLM
124+
LITELLM_BASE_URL: z.string().url().optional(), // LiteLLM proxy base URL (OpenAI-compatible)
125+
LITELLM_API_KEY: z.string().optional(), // Optional bearer token for LiteLLM
124126
FIREWORKS_API_KEY: z.string().optional(), // Optional Fireworks AI API key for model listing
125127
COHERE_API_KEY: z.string().min(1).optional(), // Cohere API key for reranker (rerank-v4.0-pro, rerank-v4.0-fast, rerank-v3.5)
126128
COHERE_API_KEY_1: z.string().min(1).optional(), // Primary Cohere API key for rotation

0 commit comments

Comments
 (0)