feat: add placeholder for OPENAI_API_KEY input (#3486)

This commit is contained in:
Chi Zhang
2023-08-01 01:35:53 +08:00
committed by GitHub
parent 452c780d40
commit c8b2728e27
3 changed files with 15 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ export const DebugContent = (): ReactElement => {
<div>
<FlexWrapper justifyContent="space-between">
<Input
width={280}
height={32}
defaultValue={key ?? undefined}
onChange={useCallback(
(newValue: string) => {
@@ -18,6 +20,7 @@ export const DebugContent = (): ReactElement => {
},
[setKey]
)}
placeholder="Enter your API_KEY here"
/>
<Button
size="large"