Skip to content

libyzxy0/go-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoAI

ChatGPT + Bard Artificial Intelligence Combination.

How to use?

npm i axios
(async function () {
const headers = {
   'Authorization': 'Bearer <OPEN_AI_KEY>',
   'Content-Type': 'application/json'
};

const body = {
    message: msg,
    firstName: userInfo.firstName,
    lastName: userInfo.name,
    setName: "YOUR-BOT-NAME",
};
let res = await axios.post('https://go-ai.libyzxy0.repl.co/', body, { headers });
let response = res.data.content;
 console.log(response);
})();

Releases

No releases published

Packages

No packages published