rewrite converting the photos to a list if they aren't
This commit is contained in:
		
							parent
							
								
									0e8da31b9a
								
							
						
					
					
						commit
						1cc23ec2ec
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -94,9 +94,9 @@ export default class gemini { | |||
| 
 | ||||
| 
 | ||||
|                 // Convert the photos to a list if it isn't set to be one.
 | ||||
|                 if (PROMPT[REQUEST[`contents`].length][`images`] ? !Array.isArray(PROMPT[REQUEST[`contents`].length][`images`]) : false) { | ||||
|                     PROMPT[REQUEST[`contents`].length][`images`] = [PROMPT[REQUEST[`contents`].length][`images`]]; | ||||
|                 } | ||||
|                 (PROMPT[REQUEST[`contents`].length][`images`] ? !Array.isArray(PROMPT[REQUEST[`contents`].length][`images`]) : false) | ||||
|                     ? PROMPT[REQUEST[`contents`].length][`images`] = [PROMPT[REQUEST[`contents`].length][`images`]] | ||||
|                     : false; | ||||
| 
 | ||||
|                 // Add the photos, which are already in the blob format. 
 | ||||
|                 while ((PROMPT[REQUEST[`contents`].length][`images`]) ? (MESSAGE[`parts`].length < PROMPT[REQUEST[`contents`].length][`images`].length) : false) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue