Skip to content
Closed
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
4 changes: 3 additions & 1 deletion app/src/main/settingsWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export function createSettingsWindow(tab?: SettingsWindowTab) {
'https://openrouter.ai',
'https://platform.openai.com',
'https://console.anthropic.com',
'https://aistudio.google.com'
'https://aistudio.google.com',
'https://vercel.com',
'https://ai-gateway.vercel.sh'
]

let isAllowedUrl = ALLOWED_DOMAINS.some((domain) => details.url.startsWith(domain))
Expand Down
5 changes: 5 additions & 0 deletions packages/icons/src/lib/Icons/Vercel.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script>
import image from './vercel.png'
</script>

<img src={image} {...$$restProps} />
Binary file added packages/icons/src/lib/Icons/vercel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Vercel from './Icons/Vercel.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,
vercel: Vercel
}

export type Icons = keyof typeof icons
Expand Down Expand Up @@ -470,5 +472,6 @@ export {
LinkExternal,
Ollama,
OpenRouter,
HuggingFace
HuggingFace,
Vercel
}
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',
VercelAiGateway = 'Vercel AI Gateway'
}

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.VercelAiGateway]: {
id: CUSTOM_MODELS.VercelAiGateway,
label: 'Vercel AI Gateway',
icon: 'vercel',
provider_url: 'https://ai-gateway.vercel.sh/v1/chat/completions',
model_page: 'https://vercel.com/ai-gateway/models',
api_key_page: 'https://vercel.com/d?to=/[team]/~/ai?title=Get Started with Vercel AI Gateway',
}
}

Expand Down