add rowboat gateway

This commit is contained in:
Ramnique Singh 2025-11-21 16:28:39 +05:30
parent 4e989342fc
commit ce8dfc784f
3 changed files with 27 additions and 10 deletions

View file

@ -1,6 +1,7 @@
import z from "zod";
export const Flavor = z.enum([
"rowboat [free]",
"anthropic",
"google",
"ollama",

View file

@ -27,7 +27,13 @@ export async function getProvider(name: string = ""): Promise<ProviderV2> {
}
const { apiKey, baseURL, headers } = providerConfig;
switch (providerConfig.flavor) {
case "openai":
case "rowboat [free]":
providerMap[name] = createOpenAICompatible({
name: "rowboat [free]",
baseURL: "https://ai-gateway.rowboatlabs.com/v1",
});
break;
case "openai":
providerMap[name] = createOpenAI({
apiKey,
baseURL,