mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 15:13:04 -04:00
migrate ai commands to obelisk
This commit is contained in:
parent
3b478bd69e
commit
641ab48053
6 changed files with 52 additions and 50 deletions
|
@ -48,18 +48,39 @@ module.exports.bard = async function(context, input){
|
|||
}
|
||||
|
||||
module.exports.gemini = async function(context, prompt){
|
||||
return await request(ObeliskApi.GEMINI_PRO, "POST", {}, {
|
||||
return await request(ObeliskApi.GOOGLE_GEMINI_PRO, "POST", {}, {
|
||||
prompt
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.geminiVision = async function(context, input, url){
|
||||
return await request(ObeliskApi.GEMINI_PRO_VISION, "POST", {}, {
|
||||
return await request(ObeliskApi.GOOGLE_GEMINI_PRO_VISION, "POST", {}, {
|
||||
input,
|
||||
url
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.palm2 = async function(context, prompt, input){
|
||||
return await request(ObeliskApi.GOOGLE_PALM2, "POST", {}, {
|
||||
prompt,
|
||||
input
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.chatgpt = async function(context, prompt, input){
|
||||
return await request(ObeliskApi.OPENAI_CHATGPT, "POST", {}, {
|
||||
prompt,
|
||||
input
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.gpt4 = async function(context, prompt, input){
|
||||
return await request(ObeliskApi.OPENAI_GPT4, "POST", {}, {
|
||||
prompt,
|
||||
input
|
||||
})
|
||||
}
|
||||
|
||||
// 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