mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-26 14:48:22 -04:00
gpt is back on the menu
This commit is contained in:
parent
f46e17c5e4
commit
a6278667e1
3 changed files with 96 additions and 0 deletions
|
@ -55,6 +55,7 @@ const Api = Object.freeze({
|
|||
UTILS_DICTIONARY: '/utils/dictionary-v2',
|
||||
UTILS_EMOJIPEDIA: '/utils/emojipedia',
|
||||
UTILS_GARFIELD: '/utils/garfield',
|
||||
UTILS_GPT: '/utils/gpt',
|
||||
UTILS_INFERKIT: '/utils/inferkit',
|
||||
UTILS_MAPKIT: '/utils/mapkit',
|
||||
UTILS_OTTER: '/utils/otter',
|
||||
|
|
|
@ -322,6 +322,13 @@ module.exports.garfield = async function(context,){
|
|||
return await request(Api.UTILS_GARFIELD, "GET", {}, {})
|
||||
}
|
||||
|
||||
module.exports.gpt = async function(context, prompt, input){
|
||||
return await request(Api.UTILS_GPT, "GET", {}, {
|
||||
prompt,
|
||||
input
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.inferkit = async function(context, input){
|
||||
return await request(Api.UTILS_INFERKIT, "GET", {}, {
|
||||
input: input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue