mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-16 09:57:09 -04:00
use new obelisk endpoint
This commit is contained in:
parent
0cac2568d8
commit
b827ae5212
3 changed files with 10 additions and 2 deletions
|
@ -21,6 +21,8 @@ const ObeliskApi = Object.freeze({
|
|||
|
||||
WEBSHOT: "/peacock/v1/screenshot",
|
||||
TRANSCRIBE: "/peacock/v1/transcribe",
|
||||
|
||||
WOLFRAM_QUERY: "/wolfram/v1/wolframalpha:query",
|
||||
})
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue