add support for openrouter
This commit is contained in:
parent
da52388895
commit
ec8263d029
1 changed files with 5 additions and 0 deletions
|
|
@ -33,6 +33,11 @@ const PROVIDER_MAP: Record<string, AiSdkProviderCreator> = {
|
|||
...options,
|
||||
baseURL: options.baseURL ?? "https://api.anthropic.com/v1/",
|
||||
}),
|
||||
openrouter: (options) =>
|
||||
createOpenAI({
|
||||
...options,
|
||||
baseURL: options.baseURL ?? "https://openrouter.ai/api/v1/",
|
||||
}),
|
||||
};
|
||||
|
||||
export class AiSdkApi implements BaseLlmApi {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue