mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 08:56:22 +02:00
add rowboat gateway
This commit is contained in:
parent
4e989342fc
commit
ce8dfc784f
3 changed files with 27 additions and 10 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import z from "zod";
|
||||
|
||||
export const Flavor = z.enum([
|
||||
"rowboat [free]",
|
||||
"anthropic",
|
||||
"google",
|
||||
"ollama",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue