mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
migrate wa to mono2
This commit is contained in:
parent
9c53dfe52c
commit
d8bb946eca
3 changed files with 9 additions and 11 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue