mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
update wallpaper
This commit is contained in:
parent
12556f2c7a
commit
a6a3eaaf05
4 changed files with 90 additions and 7 deletions
|
@ -17,7 +17,8 @@ const ObeliskApi = Object.freeze({
|
|||
WEB_ASK: "/flamingo/v1/web:ask",
|
||||
SUMMARIZE_WEBPAGES: "/flamingo/v1/web:summarize",
|
||||
|
||||
AI_WALLPAPER: "/robin/v1/wallpaper:generate",
|
||||
GENERATE_IMAGEN: "/robin/v1/generate:imagen",
|
||||
GENERATE_WALLPAPER: "/robin/v1/generate:wallpaper",
|
||||
|
||||
WEBSHOT: "/peacock/v1/screenshot",
|
||||
TRANSCRIBE: "/peacock/v1/transcribe",
|
||||
|
|
|
@ -96,12 +96,19 @@ module.exports.summarizeWebpage = async function(context, url){
|
|||
}
|
||||
|
||||
// ROBIN
|
||||
module.exports.aiWallpaper = async function(context, prompt){
|
||||
return await request(ObeliskApi.AI_WALLPAPER, "POST", {}, {
|
||||
module.exports.imagen = async function(context, prompt){
|
||||
return await request(ObeliskApi.GENERATE_IMAGEN, "POST", {}, {
|
||||
prompt
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.wallpaper = async function(context, prompt, model){
|
||||
return await request(ObeliskApi.GENERATE_WALLPAPER, "POST", {}, {
|
||||
prompt,
|
||||
model
|
||||
})
|
||||
}
|
||||
|
||||
// PEACOCK
|
||||
module.exports.webshot = async function(context, url, allowAdultContent = false){
|
||||
return await request(ObeliskApi.WEBSHOT, "POST", {}, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue