mirror of
https://github.com/WenPai-org/wpmind.git
synced 2025-08-03 02:48:41 +08:00
fixed usage of project OpenAI keys
This commit is contained in:
parent
1560bdc247
commit
d3b0173dc9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue