"""AI Peer Matching。 匹配面临类似挑战的创始人。 """ from app.services.llm_client import LLMClient async def match_founders(founders_context: str) -> dict: """AI 匹配 3-5 位面临类似挑战的创始人。""" llm = LLMClient() prompt = f"""请从以下创始人信息中,匹配 3-5 位面临类似挑战的创始人组成 Peer Learning Circle: {founders_context[:6000]} 以 JSON 格式返回: {{"topic": "讨论话题", "members": [{{"founder_name": "姓名", "company": "企业", "challenge": "面临挑战"}}], "discussion_framework": ["讨论框架步骤1", "步骤2", "步骤3"]}}""" result = await llm.chat(prompt, temperature=0.5) return result if isinstance(result, dict) else {"topic": "", "members": [], "discussion_framework": []}