案例2 理解本地图片 import base64 import requests # OpenAI API Key api_key = "sk-xxxxxxx" # Function to encode the image def encode_image(image_path): with open(image_path, "rb") as image_file: return base64.b64encode(image_file.read()).decode('utf-8') # Path to your image imag...