fixed usage of project OpenAI keys

This commit is contained in:
Nikita 2024-12-25 11:43:25 +03:00
parent 1560bdc247
commit d3b0173dc9

View file

@ -1,4 +1,4 @@
export default function isValidOpenAIApiKey(apiKey) {
const regex = /^sk-[a-zA-Z0-9]{32,}/;
const regex = /^sk-[a-zA-Z0-9]/;
return regex.test(apiKey);
}