mirror of
https://github.com/Zippland/Snap-Solver.git
synced 2026-02-07 08:22:19 +08:00
ocr
This commit is contained in:
@@ -21,6 +21,20 @@ class BaseModel(ABC):
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def analyze_text(self, text: str, proxies: dict = None) -> Generator[dict, None, None]:
|
||||
"""
|
||||
Analyze the given text and yield response chunks.
|
||||
|
||||
Args:
|
||||
text: Text to analyze
|
||||
proxies: Optional proxy configuration
|
||||
|
||||
Yields:
|
||||
dict: Response chunks with status and content
|
||||
"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_default_system_prompt(self) -> str:
|
||||
"""Return the default system prompt for this model"""
|
||||
|
||||
Reference in New Issue
Block a user