mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-24 13:57:03 -04:00
gemini vision
This commit is contained in:
parent
9254eb1abf
commit
ebe629feae
4 changed files with 87 additions and 2 deletions
|
@ -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"
|
||||
})
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
|
@ -152,6 +152,10 @@ const Statics = Object.freeze({
|
|||
file: "brands/_clyde/clyde.png",
|
||||
revision: 0
|
||||
},
|
||||
ai_gemini: {
|
||||
file: "icons/aiv2/gemini_spark.png",
|
||||
revision: 0
|
||||
},
|
||||
ai_palm_idle: {
|
||||
file: "icons/core/ico_notice_palm_idle.png",
|
||||
revision: 0
|
||||
|
@ -209,6 +213,7 @@ module.exports.STATIC_ICONS = Object.freeze({
|
|||
ai_bard_idle: staticAsset(Statics.icons.ai_bard_idle),
|
||||
ai_clyde: staticAsset(Statics.icons.ai_clyde),
|
||||
ai_clyde_idle: staticAsset(Statics.icons.ai_clyde_idle),
|
||||
ai_gemini: staticAsset(Statics.icons.ai_gemini),
|
||||
ai_palm_idle: staticAsset(Statics.icons.ai_palm_idle),
|
||||
ai_summary: staticAsset(Statics.icons.ai_summary),
|
||||
warning: staticAsset(Statics.icons.warning)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue