migrate wa to mono2

This commit is contained in:
bignutty 2024-05-17 23:25:17 +02:00
parent 9c53dfe52c
commit d8bb946eca
3 changed files with 9 additions and 11 deletions

View file

@ -11,6 +11,8 @@ const ObeliskApi = Object.freeze({
LLM_MODELS_GENERATE: "/llm/v1/generate",
GENERATIVEIMAGES_MODELS_IMAGEN: "/generativeimages/v1/models/imagen",
WOLFRAM_QUERY_COMPUTE: "/wolfram/v1/query:compute",
GOOGLE_BARD: "/parrot/v1/google:bard",
GOOGLE_GEMINI_PRO: "/parrot/v1/google:gemini",
@ -28,8 +30,6 @@ const ObeliskApi = Object.freeze({
WEBSHOT: "/peacock/v1/screenshot",
TRANSCRIBE: "/peacock/v1/transcribe",
WOLFRAM_QUERY: "/wolfram/v1/wolframalpha:query",
})
module.exports = {

View file

@ -62,7 +62,11 @@ module.exports.GenerativeImagesModelsImagen = async function(context, prompt){
})
}
module.exports.WolframQueryCompute = async function(context, query){
return await request(ObeliskApi.WOLFRAM_QUERY_COMPUTE, "POST", {}, {
query
})
}
// GENERATIVEAI
module.exports.bard = async function(context, input){
@ -145,10 +149,4 @@ module.exports.transcribeWithSpeakerLabelsObelisk = async function(context, url)
return await request(ObeliskApi.TRANSCRIBE, "POST", {}, {
url
})
}
module.exports.wolframQuery = async function(context, query){
return await request(ObeliskApi.WOLFRAM_QUERY, "POST", {}, {
q: query
})
}