feat(cloud): manage LLM providers in database
Tests / Test passed: 664

This commit is contained in:
2026-07-14 00:31:47 +08:00
parent b613a315ff
commit a166ffd8a4
35 changed files with 2432 additions and 204 deletions
+5
View File
@@ -0,0 +1,5 @@
import type { CloudUser } from "./types";
export function hasScope(user: CloudUser | null, scope: string): boolean {
return Boolean(user?.scopes.includes("*") || user?.scopes.includes(scope));
}