This commit is contained in:
Yuhong Sun
2023-06-13 12:06:10 -07:00
committed by Chris Weaver
parent b4f340b8bd
commit df79214fd6

View File

@@ -22,7 +22,7 @@ export const ApiKeyForm = ({ handleResponse }: Props) => {
initialValues={{ apiKey: "" }}
onSubmit={async ({ apiKey }, formikHelpers) => {
const response = await fetch(OPENAI_API_KEY_URL, {
method: "POST",
method: "PUT",
headers: {
"Content-Type": "application/json",
},