UnisKB/apps/setting/models_provider/impl/base_image.py

15 lines
251 B
Python
Raw Normal View History

2024-11-04 04:31:36 +00:00
# coding=utf-8
from abc import abstractmethod
from pydantic import BaseModel
class BaseImage(BaseModel):
@abstractmethod
def check_auth(self):
pass
@abstractmethod
def image_understand(self, image_file, text):
pass