mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-26 14:48:22 -04:00
mono2: screenshot
This commit is contained in:
parent
2d84cddca9
commit
eb7a03f971
4 changed files with 23 additions and 19 deletions
|
@ -11,7 +11,9 @@ const ObeliskApi = Object.freeze({
|
|||
LLM_MODELS_GENERATE: "/llm/v1/generate",
|
||||
|
||||
GENERATIVEIMAGES_MODELS_IMAGEN: "/generativeimages/v1/models/imagen",
|
||||
|
||||
|
||||
WEBUTILS_WEBPAGE_SCREENSHOT: "/webutils/v1/webpage:screenshot",
|
||||
|
||||
SPARK_WEB_SUMMARIZE: "/spark-pa/v1/web:summarize",
|
||||
|
||||
WOLFRAM_QUERY_COMPUTE: "/wolfram/v1/query:compute",
|
||||
|
|
|
@ -62,6 +62,13 @@ module.exports.GenerativeImagesModelsImagen = async function(context, prompt){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.WebUtilsWebPageScreenshot = async function(context, url, allow_adult){
|
||||
return await request(ObeliskApi.WEBUTILS_WEBPAGE_SCREENSHOT, "POST", {}, {
|
||||
url,
|
||||
allow_adult
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.SparkWebSummarize = async function(context, url){
|
||||
return await request(ObeliskApi.SPARK_WEB_SUMMARIZE, "POST", {}, {
|
||||
url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue