mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 20:08:38 +02:00
fixed
This commit is contained in:
@@ -22,7 +22,7 @@ export const ApiKeyForm = ({ handleResponse }: Props) => {
|
|||||||
initialValues={{ apiKey: "" }}
|
initialValues={{ apiKey: "" }}
|
||||||
onSubmit={async ({ apiKey }, formikHelpers) => {
|
onSubmit={async ({ apiKey }, formikHelpers) => {
|
||||||
const response = await fetch(OPENAI_API_KEY_URL, {
|
const response = await fetch(OPENAI_API_KEY_URL, {
|
||||||
method: "POST",
|
method: "PUT",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user