gemini vision

This commit is contained in:
derpystuff 2023-12-13 21:57:47 +01:00
parent 9254eb1abf
commit ebe629feae
4 changed files with 87 additions and 2 deletions

View file

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

View file

@ -48,7 +48,7 @@ module.exports.bard = async function(context, input){
}
module.exports.geminiVision = async function(context, input, url){
return await request(ObeliskApi.GOOGLE_BARD, "POST", {}, {
return await request(ObeliskApi.GEMINI_PRO_VISION, "POST", {}, {
input,
url
})