mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-18 02:47:05 -04:00
improve gemini-pro command
This commit is contained in:
parent
ab2ddea506
commit
475d83987d
4 changed files with 41 additions and 13 deletions
|
@ -49,6 +49,14 @@ module.exports.googleGenaiEditImage = async function(context, prompt, url){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.googleGenaiGeminiApi = async function(context, model, input, prompt){
|
||||
return await request(Api.GOOGLE_GENERATIVEAI_GEMINI_API, "GET", {}, {
|
||||
prompt,
|
||||
input,
|
||||
model
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.googleGenaiImagen = async function(context, prompt, imageCount = 2){
|
||||
return await request(Api.GOOGLE_GENERATIVEAI_IMAGEN, "GET", {}, {
|
||||
prompt: prompt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue