This commit is contained in:
Zylan
2025-02-04 05:17:14 +08:00
parent a77de38533
commit 75d6ff2c40
11 changed files with 641 additions and 61 deletions

View File

@@ -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"""