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
9 changes: 9 additions & 0 deletions surfsense_backend/app/services/provider_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ class ProviderSpec:
"bearer",
"Requesty",
),
"orcarouter": ProviderSpec(
Transport.OPENAI_COMPATIBLE,
"openai",
"openai_models",
"https://api.orcarouter.ai/v1",
False,
"bearer",
"OrcaRouter",
),
"openai_compatible": ProviderSpec(
Transport.OPENAI_COMPATIBLE,
"openai",
Expand Down
1 change: 1 addition & 0 deletions surfsense_web/components/icons/providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export { default as QwenIcon } from "./qwen.svg";
export { default as RecraftIcon } from "./recraft.svg";
export { default as ReplicateIcon } from "./replicate.svg";
export { default as RequestyIcon } from "./requesty.svg";
export { default as OrcaRouterIcon } from "./orcarouter.svg";
export { default as SambaNovaIcon } from "./sambanova.svg";
export { default as TogetherAiIcon } from "./togetherai.svg";
export { default as VertexAiIcon } from "./vertexai.svg";
Expand Down
1 change: 1 addition & 0 deletions surfsense_web/components/icons/providers/orcarouter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ function baseUrlHint(provider: string) {
provider === "openai" ||
provider === "anthropic" ||
provider === "openrouter" ||
provider === "requesty"
provider === "requesty" ||
provider === "orcarouter"
) {
return "Override only if you route through a proxy or gateway.";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const PROVIDER_ORDER = [
"azure",
"openrouter",
"requesty",
"orcarouter",
"ollama_chat",
"lm_studio",
"openai_compatible",
Expand Down Expand Up @@ -56,6 +57,12 @@ export const PROVIDER_DISPLAY: Record<
iconKey: "requesty",
defaultBaseUrl: "https://router.requesty.ai/v1",
},
orcarouter: {
name: "OrcaRouter",
subtitle: "OrcaRouter",
iconKey: "orcarouter",
defaultBaseUrl: "https://api.orcarouter.ai/v1",
},
vertex_ai: { name: "Gemini", subtitle: "Google Cloud Vertex AI", iconKey: "vertex_ai" },
};

Expand Down
3 changes: 3 additions & 0 deletions surfsense_web/lib/provider-icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
OllamaIcon,
OpenaiIcon,
OpenRouterIcon,
OrcaRouterIcon,
PerplexityIcon,
QwenIcon,
RecraftIcon,
Expand Down Expand Up @@ -112,6 +113,8 @@ export function getProviderIcon(
return <OpenaiIcon className={cn(className)} />;
case "OPENROUTER":
return <OpenRouterIcon className={cn(className)} />;
case "ORCAROUTER":
return <OrcaRouterIcon className={cn(className)} />;
case "PERPLEXITY":
return <PerplexityIcon className={cn(className)} />;
case "RECRAFT":
Expand Down