use new obelisk endpoint

This commit is contained in:
derpystuff 2024-04-11 22:39:51 +02:00
parent 0cac2568d8
commit b827ae5212
3 changed files with 10 additions and 2 deletions

View file

@ -21,6 +21,8 @@ const ObeliskApi = Object.freeze({
WEBSHOT: "/peacock/v1/screenshot",
TRANSCRIBE: "/peacock/v1/transcribe",
WOLFRAM_QUERY: "/wolfram/v1/wolframalpha:query",
})
module.exports = {

View file

@ -115,4 +115,10 @@ 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
})
}