mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
17 lines
689 B
TypeScript
17 lines
689 B
TypeScript
import { Package } from "@roo/package"
|
|
|
|
export function getCallbackUrl(provider: string, uriScheme?: string) {
|
|
return encodeURIComponent(`${uriScheme || "vscode"}://${Package.publisher}.${Package.name}/${provider}`)
|
|
}
|
|
|
|
export function getGlamaAuthUrl(uriScheme?: string) {
|
|
return `https://glama.ai/oauth/authorize?callback_url=${getCallbackUrl("glama", uriScheme)}`
|
|
}
|
|
|
|
export function getOpenRouterAuthUrl(uriScheme?: string) {
|
|
return `https://openrouter.ai/auth?callback_url=${getCallbackUrl("openrouter", uriScheme)}`
|
|
}
|
|
|
|
export function getRequestyAuthUrl(uriScheme?: string) {
|
|
return `https://app.requesty.ai/oauth/authorize?callback_url=${getCallbackUrl("requesty", uriScheme)}`
|
|
}
|