fix otter

This commit is contained in:
derpystuff 2023-12-13 21:36:18 +01:00
parent ab34dd1108
commit 9254eb1abf
5 changed files with 22 additions and 9 deletions

View file

@ -7,6 +7,7 @@ const ObeliskApi = Object.freeze({
HOST: ObeliskHosts.prod,
GOOGLE_BARD: "/parrot/v1/google:bard",
GEMINI_PRO_VISION: "/parrot/v1/google:geminivision",
SUMMARIZE_WEBPAGES: "/flamingo/v1/web:summarize"
})

View file

@ -47,6 +47,13 @@ module.exports.bard = async function(context, input){
})
}
module.exports.geminiVision = async function(context, input, url){
return await request(ObeliskApi.GOOGLE_BARD, "POST", {}, {
input,
url
})
}
// FLAMINGO
module.exports.summarizeWebpage = async function(context, url){
return await request(ObeliskApi.SUMMARIZE_WEBPAGES, "POST", {}, {