diff --git a/web/src/components/openai/ApiKeyForm.tsx b/web/src/components/openai/ApiKeyForm.tsx index 9fa186830a1..c6357c0972d 100644 --- a/web/src/components/openai/ApiKeyForm.tsx +++ b/web/src/components/openai/ApiKeyForm.tsx @@ -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", },