mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Improve error message when semantic search is not enabled with genai (#14528)
This commit is contained in:
		
							parent
							
								
									fc59c83e16
								
							
						
					
					
						commit
						7afc1e9762
					
				| @ -1015,7 +1015,7 @@ def regenerate_description( | ||||
|         content=( | ||||
|             { | ||||
|                 "success": False, | ||||
|                 "message": "Semantic search and generative AI are not enabled", | ||||
|                 "message": "Semantic Search and Generative AI must be enabled to regenerate a description", | ||||
|             } | ||||
|         ), | ||||
|         status_code=400, | ||||
|  | ||||
| @ -368,9 +368,9 @@ function ObjectDetailsTab({ | ||||
|             ); | ||||
|           } | ||||
|         }) | ||||
|         .catch(() => { | ||||
|         .catch((error) => { | ||||
|           toast.error( | ||||
|             `Failed to call ${capitalizeAll(config?.genai.provider.replaceAll("_", " ") ?? "Generative AI")} for a new description`, | ||||
|             `Failed to call ${capitalizeAll(config?.genai.provider.replaceAll("_", " ") ?? "Generative AI")} for a new description: ${error.response.data.message}`, | ||||
|             { | ||||
|               position: "top-center", | ||||
|             }, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user