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
1 change: 1 addition & 0 deletions packages/inference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Currently, we support the following providers:
- [Fal.ai](https://fal.ai)
- [Featherless AI](https://featherless.ai)
- [Fireworks AI](https://fireworks.ai)
- [GMI Cloud](https://gmicloud.ai)
- [HF Inference](https://huggingface.co/docs/inference-providers/providers/hf-inference)
- [Hyperbolic](https://hyperbolic.xyz)
- [Nebius](https://studio.nebius.ai)
Expand Down
4 changes: 4 additions & 0 deletions packages/inference/src/lib/getProviderHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as Cohere from "../providers/cohere.js";
import * as FalAI from "../providers/fal-ai.js";
import * as FeatherlessAI from "../providers/featherless-ai.js";
import * as Fireworks from "../providers/fireworks-ai.js";
import * as GMICloud from "../providers/gmicloud.js";
import * as Groq from "../providers/groq.js";
import * as HFInference from "../providers/hf-inference.js";
import * as Hyperbolic from "../providers/hyperbolic.js";
Expand Down Expand Up @@ -119,6 +120,9 @@ export const PROVIDERS: Record<InferenceProvider, Partial<Record<InferenceTask,
"fireworks-ai": {
conversational: new Fireworks.FireworksConversationalTask(),
},
"gmicloud": {
conversational: new GMICloud.GMICloudConversationalTask(),
},
groq: {
conversational: new Groq.GroqConversationalTask(),
"text-generation": new Groq.GroqTextGenerationTask(),
Expand Down
7 changes: 7 additions & 0 deletions packages/inference/src/providers/gmicloud.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { BaseConversationalTask } from "./providerHelper.js";

export class GMICloudConversationalTask extends BaseConversationalTask {
constructor() {
super("gmicloud", "https://api.gmi-serving.com");
}
}
2 changes: 2 additions & 0 deletions packages/inference/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const INFERENCE_PROVIDERS = [
"fal-ai",
"featherless-ai",
"fireworks-ai",
"gmicloud",
"groq",
"hf-inference",
"hyperbolic",
Expand Down Expand Up @@ -90,6 +91,7 @@ export const PROVIDERS_HUB_ORGS: Record<InferenceProvider, string> = {
"fal-ai": "fal",
"featherless-ai": "featherless-ai",
"fireworks-ai": "fireworks-ai",
"gmicloud": "gmicloud",
groq: "groq",
"hf-inference": "hf-inference",
hyperbolic: "Hyperbolic",
Expand Down