minor changes in referencing the variables
This commit is contained in:
		
							parent
							
								
									9f0267f3a5
								
							
						
					
					
						commit
						37329df836
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -45,7 +45,7 @@ export default class gemini { | |||
|     @param {boolean} continued whether to continue the existing prompt | ||||
|     */ | ||||
|     async generate(prompt, safetySettings, generationConfig, continued = false) { | ||||
|         let create = async () => { | ||||
|         const create = async () => { | ||||
|             let REQUEST = {}, PROMPT = []; | ||||
| 
 | ||||
|             if ((typeof prompt) != `object`) { | ||||
|  | @ -178,7 +178,7 @@ export default class gemini { | |||
|         } | ||||
| 
 | ||||
|         let REQUEST = await create(); | ||||
|         let RESPONSE_RAW = await send(REQUEST); | ||||
|         return(analyze(RESPONSE_RAW)); | ||||
|         await send(REQUEST); | ||||
|         return(analyze(this.response)); | ||||
|     } | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue