(self)
| 20 | """内容生成服务:生成标题、文案、标签""" |
| 21 | |
| 22 | def __init__(self): |
| 23 | logger.debug("初始化 ContentService...") |
| 24 | self.text_config = self._load_text_config() |
| 25 | self.client = self._get_client() |
| 26 | self.prompt_template = self._load_prompt_template() |
| 27 | logger.info(f"ContentService 初始化完成,使用服务商: {self.text_config.get('active_provider')}") |
| 28 | |
| 29 | def _load_text_config(self) -> dict: |
| 30 | """加载文本生成配置""" |
nothing calls this directly
no test coverage detected