[feat] add gemini

This commit is contained in:
kwaroran
2023-12-14 07:33:54 +09:00
parent 24be8473ba
commit b7b7b54dc3
4 changed files with 213 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ export async function getInlayImage(id: string){
export function supportsInlayImage(){
const db = get(DataBase)
return db.aiModel.startsWith('gptv') || (db.aiModel === 'reverse_proxy' && db.proxyRequestModel?.startsWith('gptv'))
return db.aiModel.startsWith('gptv') || (db.aiModel === 'reverse_proxy' && db.proxyRequestModel?.startsWith('gptv')) || db.aiModel === 'gemini-pro-vision'
}
export async function reencodeImage(img:Uint8Array){