mirror of
				https://github.com/open-webui/openapi-servers
				synced 2025-06-26 18:17:04 +00:00 
			
		
		
		
	refac: memory
This commit is contained in:
		
							parent
							
								
									2d4b4756ba
								
							
						
					
					
						commit
						37d84e6a97
					
				| @ -203,7 +203,7 @@ def add_observations(req: AddObservationsRequest): | ||||
|     results = [] | ||||
| 
 | ||||
|     for obs in req.observations: | ||||
|         name = obs.entityName | ||||
|         name = obs.entityName.lower() | ||||
|         contents = obs.contents | ||||
|         entity = next((e for e in graph.entities if e.name == name), None) | ||||
|         if not entity: | ||||
| @ -234,7 +234,7 @@ def delete_observations(req: DeleteObservationsRequest): | ||||
|     graph = read_graph_file() | ||||
| 
 | ||||
|     for deletion in req.deletions: | ||||
|         name = deletion.entityName | ||||
|         name = deletion.entityName.lower() | ||||
|         to_delete = deletion.observations | ||||
|         entity = next((e for e in graph.entities if e.name == name), None) | ||||
|         if entity: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user