Skip to content

Commit 7f33252

Browse files
fix: just trust api keys
1 parent f4eda81 commit 7f33252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/apikey.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function isValidAPIKey(apiKey: string | null) {
2-
return (apiKey?.length === 51 && apiKey.startsWith("sk-")) || (apiKey?.length === 56 && apiKey.startsWith("sk-proj-"));
2+
return apiKey.startsWith("sk-") || apiKey.startsWith("sk-proj-");
33
}

0 commit comments

Comments
 (0)