We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193b862 commit b99eb74Copy full SHA for b99eb74
src/utils/apikey.ts
@@ -1,3 +1,3 @@
1
export function isValidAPIKey(apiKey: string | null) {
2
- return apiKey?.length == 51 && apiKey?.startsWith("sk-");
+ return (apiKey?.length === 51 && apiKey.startsWith("sk-")) || (apiKey?.length === 56 && apiKey.startsWith("sk-proj-"));
3
}
0 commit comments