migrate summaries to mono2

This commit is contained in:
bignutty 2024-05-18 16:02:50 +02:00
parent 93a95a0523
commit d13e56324b
3 changed files with 12 additions and 6 deletions

View file

@ -12,6 +12,8 @@ const ObeliskApi = Object.freeze({
GENERATIVEIMAGES_MODELS_IMAGEN: "/generativeimages/v1/models/imagen",
SPARK_WEB_SUMMARIZE: "/spark-pa/v1/web:summarize",
WOLFRAM_QUERY_COMPUTE: "/wolfram/v1/query:compute",
GOOGLE_BARD: "/parrot/v1/google:bard",

View file

@ -62,6 +62,12 @@ module.exports.GenerativeImagesModelsImagen = async function(context, prompt){
})
}
module.exports.SparkWebSummarize = async function(context, url){
return await request(ObeliskApi.SPARK_WEB_SUMMARIZE, "POST", {}, {
url
})
}
module.exports.WolframQueryCompute = async function(context, query){
return await request(ObeliskApi.WOLFRAM_QUERY_COMPUTE, "POST", {}, {
query