Skip to content

Commit 061854b

Browse files
authored
Provider => hub mapping (#1806)
1 parent d7df9d5 commit 061854b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

packages/inference/src/types.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,37 @@ export type InferenceProvider = (typeof INFERENCE_PROVIDERS)[number];
7676

7777
export type InferenceProviderOrPolicy = (typeof PROVIDERS_OR_POLICIES)[number];
7878

79+
/**
80+
* The org namespace on the HF Hub i.e. hf.co/…
81+
*
82+
* Whenever possible, InferenceProvider should == org namespace
83+
*/
84+
export const PROVIDERS_HUB_ORGS: Record<InferenceProvider, string> = {
85+
baseten: "baseten",
86+
"black-forest-labs": "black-forest-labs",
87+
cerebras: "cerebras",
88+
clarifai: "clarifai",
89+
cohere: "CohereLabs",
90+
"fal-ai": "fal",
91+
"featherless-ai": "featherless-ai",
92+
"fireworks-ai": "fireworks-ai",
93+
groq: "groq",
94+
"hf-inference": "hf-inference",
95+
hyperbolic: "Hyperbolic",
96+
nebius: "nebius",
97+
novita: "novita",
98+
nscale: "nscale",
99+
openai: "openai",
100+
ovhcloud: "ovhcloud",
101+
publicai: "publicai",
102+
replicate: "replicate",
103+
sambanova: "sambanovasystems",
104+
scaleway: "scaleway",
105+
together: "togethercomputer",
106+
wavespeed: "wavespeed",
107+
"zai-org": "zai-org",
108+
};
109+
79110
export interface InferenceProviderMappingEntry {
80111
adapter?: string;
81112
adapterWeightsPath?: string;

0 commit comments

Comments
 (0)