Spaces:
Runtime error
Runtime error
feat: synchronize text-to-sql-bot codebase with Hugging Face Space repository, including Docker build configurations
6086e71 | """ | |
| Abstract LLM Provider Interface — All providers must implement this. | |
| """ | |
| from abc import ABC, abstractmethod | |
| class BaseLLMProvider(ABC): | |
| """Base class for all LLM providers.""" | |
| def generate(self, messages: list[dict], **kwargs) -> str: | |
| """Generate a response from the model.""" | |
| ... | |
| def health_check(self) -> bool: | |
| """Check if the provider is available.""" | |
| ... | |
| def name(self) -> str: | |
| """Provider name identifier.""" | |
| ... | |