mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
migrate summaries to mono2
This commit is contained in:
parent
93a95a0523
commit
d13e56324b
3 changed files with 12 additions and 6 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue