MCPcopy Create free account
hub / github.com/HisMax/RedInk / __init__

Method __init__

backend/services/content.py:22–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 """加载文本生成配置"""

Callers

nothing calls this directly

Calls 4

_load_text_configMethod · 0.95
_get_clientMethod · 0.95
_load_prompt_templateMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected