mirror of
				https://github.com/open-webui/mcpo
				synced 2025-06-26 18:26:58 +00:00 
			
		
		
		
	refac
This commit is contained in:
		
							parent
							
								
									074a8d4a0e
								
							
						
					
					
						commit
						c55ecae887
					
				| @ -87,10 +87,6 @@ async def create_dynamic_endpoints(app: FastAPI, api_dependency=None): | ||||
|                         response.append(text) | ||||
|                     elif isinstance(content, types.ImageContent): | ||||
|                         image_data = content.data | ||||
| 
 | ||||
|                         if isinstance(image_data, bytes): | ||||
|                             image_data = image_data.decode("utf-8") | ||||
| 
 | ||||
|                         image_data = f"data:{content.mimeType};base64,{image_data}" | ||||
|                         response.append(image_data) | ||||
|                     elif isinstance(content, types.EmbeddedResource): | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user