mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
feat(providers): add Hackclub AI as free provider (#2339)
Integrated into release/v3.8.0 — adds Hackclub AI as free aggregator with 30+ models, auth optional
This commit is contained in:
@@ -2693,6 +2693,20 @@ export const REGISTRY: Record<string, RegistryEntry> = {
|
||||
],
|
||||
},
|
||||
|
||||
hackclub: {
|
||||
id: "hackclub",
|
||||
alias: "hc",
|
||||
format: "openai",
|
||||
executor: "default",
|
||||
baseUrl: "https://ai.hackclub.com/proxy/v1/chat/completions",
|
||||
modelsUrl: "https://ai.hackclub.com/proxy/v1/models",
|
||||
authType: "optional",
|
||||
authHeader: "bearer",
|
||||
passthroughModels: true,
|
||||
defaultContextLength: 128000,
|
||||
models: [],
|
||||
},
|
||||
|
||||
deepinfra: {
|
||||
id: "deepinfra",
|
||||
alias: "deepinfra",
|
||||
|
||||
@@ -876,6 +876,19 @@ export const APIKEY_PROVIDERS = {
|
||||
passthroughModels: true,
|
||||
authHint: "No auth required. API accepts any non-empty string as key for identification.",
|
||||
},
|
||||
hackclub: {
|
||||
id: "hackclub",
|
||||
alias: "hc",
|
||||
name: "Hackclub AI",
|
||||
icon: "auto_awesome",
|
||||
color: "#FF6B00",
|
||||
textIcon: "HC",
|
||||
website: "https://ai.hackclub.com",
|
||||
hasFree: true,
|
||||
freeNote: "Free AI for Hack Club members — 30+ models, no credit card.",
|
||||
passthroughModels: true,
|
||||
authHint: "Sign in with your Hack Club account at ai.hackclub.com.",
|
||||
},
|
||||
"github-models": {
|
||||
id: "github-models",
|
||||
alias: "ghm",
|
||||
@@ -1590,6 +1603,7 @@ export const AGGREGATOR_PROVIDER_IDS = new Set([
|
||||
"empower",
|
||||
"poe",
|
||||
"chutes",
|
||||
"hackclub",
|
||||
]);
|
||||
|
||||
export const ENTERPRISE_CLOUD_PROVIDER_IDS = new Set([
|
||||
@@ -2023,6 +2037,7 @@ export function providerAllowsOptionalApiKey(providerId: unknown): boolean {
|
||||
providerId === "searxng-search" ||
|
||||
providerId === "petals" ||
|
||||
providerId === "pollinations" ||
|
||||
providerId === "hackclub" ||
|
||||
isLocalProvider(providerId) ||
|
||||
isSelfHostedChatProvider(providerId) ||
|
||||
isOpenAICompatibleProvider(providerId) ||
|
||||
|
||||
Reference in New Issue
Block a user