|
|
@@ -199,6 +199,7 @@ async def llm_task(product_name):
|
|
|
task_list.append(agent_model)
|
|
|
# logger.info(f"{agent_model.competitor.items()}")
|
|
|
await asyncio.gather(*task_list)
|
|
|
+ await gen_marketing_file(product_name)
|
|
|
# llm = LiteLLM(model=model, api_key=OPENAI_API_KEY, api_base=OPENAI_API_BASE)
|
|
|
# agent = MarketingAgent(llm=llm, template_manager=m)
|
|
|
# agent_model = await agent.gen_mainkeys_tailkeys(product_name='大尺寸厚款卸妆棉240片', verbose=True, overwrite=True)
|
|
|
@@ -220,9 +221,9 @@ async def gen_marketing_file(product_name):
|
|
|
await agent.gen_marketing_file(product_name=product_name, output_path=output_path, llm_models=llm_models)
|
|
|
logger.info(f"{output_path}")
|
|
|
def main():
|
|
|
- product_name = '养花专用园艺迷你3件套'
|
|
|
+ product_name = '狗刷牙指套'
|
|
|
# product_name = '园艺镊子套装2件套'
|
|
|
- asyncio.run(gen_marketing_file(product_name=product_name))
|
|
|
+ asyncio.run(llm_task(product_name=product_name))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
main()
|