Ignore case; AI refactor
This commit is contained in:
parent
3187885ac3
commit
eb3f3fda0d
3 changed files with 14 additions and 29 deletions
|
|
@ -14,7 +14,7 @@ const getTextGemini = async (input: string): Promise<string> => {
|
|||
return response.text ?? "AI Error";
|
||||
};
|
||||
|
||||
const getImageNanoBanana = async (
|
||||
const getImageGemini = async (
|
||||
input: string,
|
||||
): Promise<Buffer<ArrayBuffer> | undefined> => {
|
||||
const response = await googleAI.models.generateContent({
|
||||
|
|
@ -41,4 +41,4 @@ const getImageNanoBanana = async (
|
|||
return buffer;
|
||||
};
|
||||
|
||||
export { getTextGemini, getImageNanoBanana };
|
||||
export { getTextGemini, getImageGemini };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue