mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23:08 -04:00
fix otter
This commit is contained in:
parent
ab34dd1108
commit
9254eb1abf
5 changed files with 22 additions and 9 deletions
|
@ -54,6 +54,7 @@ const Api = Object.freeze({
|
|||
UTILS_GARFIELD: '/utils/garfield',
|
||||
UTILS_INFERKIT: '/utils/inferkit',
|
||||
UTILS_MAPKIT: '/utils/mapkit',
|
||||
UTILS_OTTER: '/utils/otter',
|
||||
UTILS_PERSPECTIVE: '/utils/perspective',
|
||||
UTILS_SCREENSHOT: '/utils/screenshot',
|
||||
UTILS_TEXTGENERATOR: '/utils/text-generator',
|
||||
|
|
|
@ -304,7 +304,7 @@ module.exports.emojipedia = async function(context, emoji){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.garfield = async function(context, emoji){
|
||||
module.exports.garfield = async function(context,){
|
||||
return await request(Api.UTILS_GARFIELD, "GET", {}, {})
|
||||
}
|
||||
|
||||
|
@ -314,6 +314,10 @@ module.exports.inferkit = async function(context, input){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.otter = async function(context){
|
||||
return await request(Api.UTILS_OTTER, "GET", {}, {})
|
||||
}
|
||||
|
||||
module.exports.perspective = async function(context, content = []){
|
||||
return await request(Api.UTILS_PERSPECTIVE, "GET", {}, {
|
||||
input: content.join('\n\n')
|
||||
|
|
|
@ -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"
|
||||
})
|
||||
|
|
|
@ -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", {}, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue