mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
use imagen3
This commit is contained in:
parent
91c7a6850c
commit
90b4b0c6a8
3 changed files with 13 additions and 6 deletions
|
@ -42,6 +42,12 @@ async function request(path, type, headers, args, host) {
|
|||
throw new Error("unsupported, must either use GET or POST");
|
||||
}
|
||||
|
||||
module.exports.googleGenaiImagen = async function(context, prompt){
|
||||
return await request(Api.GOOGLE_GENERATIVEAI_IMAGEN, "GET", {}, {
|
||||
prompt: prompt
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.googlePerspective = async function(context, text){
|
||||
return await request(Api.GOOGLE_PERSPECTIVE, "GET", {}, {
|
||||
text: text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue