diff --git a/src/utils/apikey.ts b/src/utils/apikey.ts index addf041..8f65d43 100644 --- a/src/utils/apikey.ts +++ b/src/utils/apikey.ts @@ -1,3 +1,3 @@ export function isValidAPIKey(apiKey: string | null) { - return apiKey?.length == 51 && apiKey?.startsWith("sk-"); + return (apiKey?.length === 51 && apiKey.startsWith("sk-")) || (apiKey?.length === 56 && apiKey.startsWith("sk-proj-")); }