Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/icons/src/lib/Icons/LiteLLM.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" {...$$restProps}>
<text x="12" y="18" font-size="20" text-anchor="middle">🚅</text>
</svg>
7 changes: 5 additions & 2 deletions packages/icons/src/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ import LinkExternal from './Icons/LinkExternal.svelte'
import Ollama from './Icons/Ollama.svelte'
import OpenRouter from './Icons/OpenRouter.svelte'
import HuggingFace from './Icons/HuggingFace.svelte'
import LiteLLM from './Icons/LiteLLM.svelte'

import DynamicIcon from './DynamicIcon.svelte'

Expand Down Expand Up @@ -309,7 +310,8 @@ export const icons = {
book: Book,
ollama: Ollama,
openrouter: OpenRouter,
huggingface: HuggingFace
huggingface: HuggingFace,
litellm: LiteLLM
}

export type Icons = keyof typeof icons
Expand Down Expand Up @@ -470,5 +472,6 @@ export {
LinkExternal,
Ollama,
OpenRouter,
HuggingFace
HuggingFace,
LiteLLM
}
11 changes: 10 additions & 1 deletion packages/types/src/ai.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ export enum CUSTOM_MODELS {
Ollama = 'Ollama',
OpenRouter = 'OpenRouter',
HuggingFaceTogether = 'Hugging Face Together AI',
HuggingFace = 'Hugging Face Inference Endpoint'
HuggingFace = 'Hugging Face Inference Endpoint',
LiteLLM = 'LiteLLM'
}

export type CustomModelType = keyof typeof CUSTOM_MODELS
Expand Down Expand Up @@ -408,6 +409,14 @@ export const CUSTOM_MODEL_DEFINITIONS: Record<CUSTOM_MODELS, CustomModelDefiniti
provider_url: 'https://api-inference.huggingface.co/models/',
model_page: 'https://huggingface.co/models?inference_provider=together&sort=trending',
api_key_page: 'https://huggingface.co/settings/tokens'
},
[CUSTOM_MODELS.LiteLLM]: {
id: CUSTOM_MODELS.LiteLLM,
label: 'LiteLLM',
icon: 'litellm',
provider_url: 'http://localhost:4000/v1/chat/completions',
model_page: 'https://docs.litellm.ai/docs/providers',
api_key_page: 'https://docs.litellm.ai/docs/simple_proxy#quick-start'
}
}

Expand Down