mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-22 12:57:03 -04:00
improve gemini-pro command
This commit is contained in:
parent
ab2ddea506
commit
475d83987d
4 changed files with 41 additions and 13 deletions
|
@ -8,6 +8,7 @@ const Api = Object.freeze({
|
|||
HOST: Hosts.prod,
|
||||
|
||||
GOOGLE_GENERATIVEAI_EDIT_IMAGE: '/google/generativeai/edit-image',
|
||||
GOOGLE_GENERATIVEAI_GEMINI_API: '/google/generativeai/gemini',
|
||||
GOOGLE_GENERATIVEAI_IMAGEN: '/google/generativeai/imagen',
|
||||
GOOGLE_PERSPECTIVE: '/google/perspective/analyze',
|
||||
GOOGLE_SPEECH_RECOGNIZE: '/google/speech/recognize',
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -215,7 +215,7 @@ const Statics = Object.freeze({
|
|||
revision: 0
|
||||
},
|
||||
ai_gemini: {
|
||||
file: "icons/aiv2/gemini_spark.png",
|
||||
file: "icons/aiv2/gemini_spark_v2.png",
|
||||
revision: 0
|
||||
},
|
||||
ai_palm_idle: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue