From b7703536a8089ad2bea0518dd06da72ee71e685c Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 6 May 2024 10:49:23 -0500 Subject: [PATCH] Add support for Project API Keys (sk-proj-) --- ui-sketcher-extension/src/ui-sketcher-token-prompt.command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-sketcher-extension/src/ui-sketcher-token-prompt.command.ts b/ui-sketcher-extension/src/ui-sketcher-token-prompt.command.ts index bb41a91..3322079 100644 --- a/ui-sketcher-extension/src/ui-sketcher-token-prompt.command.ts +++ b/ui-sketcher-extension/src/ui-sketcher-token-prompt.command.ts @@ -1,6 +1,6 @@ import * as vscode from "vscode"; -const OPENAI_API_TOKEN_REGEX = /^sk-\w{48}$/; +const OPENAI_API_TOKEN_REGEX = /^(sk|sk-proj)-\w{48}$/; export class UiSketcherTokenPrompt { public constructor(