Skip to content

Commit

Permalink
Merge pull request #73 from chengfengfengwang/project-apikey-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster authored May 17, 2024
2 parents 15b85c5 + c041ecd commit 6fbfdac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-pigs-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"syncia": patch
---

openAI project apikey input on welcome screen
2 changes: 1 addition & 1 deletion src/components/Sidebar/auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Auth = () => {
placeholder="Enter your OpenAI API key"
data-error={error ? 'true' : undefined}
className="cdx-mt-4 cdx-text-center cdx-p-2 cdx-w-full cdx-rounded-md cdx-border dark:cdx-border-neutral-600 cdx-border-neutral-200 dark:cdx-bg-neutral-800/90 cdx-bg-neutral-200/90 focus:cdx-outline-none focus:cdx-ring-2 focus:cdx-ring-blue-900 focus:cdx-ring-opacity-50 data-[error]:cdx-text-red-500"
pattern="sk-[a-zA-Z0-9]{48}"
pattern="sk-(proj-)?[a-zA-Z0-9]{48}"
/>

{error && (
Expand Down

0 comments on commit 6fbfdac

Please sign in to comment.