mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 18:21:28 +10:00
Refactor OpenAI API key regex to accept project API keys, fixes #1900
This commit is contained in:
@ -22,7 +22,7 @@ const formSchema = z.object({
|
|||||||
apiKey: z
|
apiKey: z
|
||||||
.string()
|
.string()
|
||||||
// eslint-disable-next-line lingui/t-call-in-function
|
// eslint-disable-next-line lingui/t-call-in-function
|
||||||
.regex(/^sk-[\dA-Za-z]+$/, t`That doesn't look like a valid OpenAI API key.`)
|
.regex(/^sk-.+$/, t`That doesn't look like a valid OpenAI API key.`)
|
||||||
.default(""),
|
.default(""),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user