(image_path)
| 3 | import base64 |
| 4 | |
| 5 | def encode_image(image_path): |
| 6 | with open(image_path, "rb") as image_file: |
| 7 | return base64.b64encode(image_file.read()).decode("utf-8") |
| 8 | |
| 9 | class MyOpenAI(BaseModel): |
| 10 | def __init__(self, config): |
no outgoing calls
no test coverage detected