From 49b6cf2443d140c0f6f0619bea4cddcc00d8ec1a Mon Sep 17 00:00:00 2001 From: ibugithub Date: Mon, 4 Sep 2023 20:25:05 +0600 Subject: [PATCH] Change api url --- components/Ask/askMe.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/Ask/askMe.tsx b/components/Ask/askMe.tsx index 65a96ec4..c20eb8e3 100644 --- a/components/Ask/askMe.tsx +++ b/components/Ask/askMe.tsx @@ -2,12 +2,10 @@ import React, { useState} from 'react'; import axios from 'axios'; import Image from 'next/image'; -import LoadingDots from './loadingAnimation'; const AskMe = () => { const [question, setQuestion] = useState(''); const [response, setResponse] = useState(''); - const [error, setError] = useState(false); const [isLoading, setIsLoading] = useState(false); const handleAsk = async () => { @@ -20,7 +18,7 @@ const AskMe = () => { method: 'POST', headers: { 'content-type': 'application/json', - 'X-RapidAPI-Key': '3e23859a70msh24ff10192c00a8dp1962edjsn2a9fc0364514', + 'X-RapidAPI-Key': '12865b262bmsh1df342a7a8209adp11946djsned15b0207e45', 'X-RapidAPI-Host': 'open-ai21.p.rapidapi.com' }, body: JSON.stringify({