feat: fase 2 — generación por secciones report_extended, blog_extended, podcast_extended
Build & Deploy ResearchOwl / build-and-push (push) Successful in 5s
Build & Deploy ResearchOwl / build-and-push (push) Successful in 5s
This commit is contained in:
+10
-1
@@ -141,7 +141,9 @@ async def cmd_start(update: Update, ctx: ContextTypes.DEFAULT_TYPE):
|
||||
"`/status` — Check current research progress\n"
|
||||
"`/finish` — Stop research and proceed to generation\n"
|
||||
"`/process` — Manually trigger chunk processing\n"
|
||||
"`/generate <type>` — Generate output (podcast|blog|report|thread)\n"
|
||||
"`/generate <type>` — Generate output\n"
|
||||
" Tipos: podcast|blog|report|thread\n"
|
||||
" Extended: podcast_extended|blog_extended|report_extended\n"
|
||||
"`/sources` — List all sources found\n"
|
||||
"`/outputs` — List generated outputs\n"
|
||||
"`/costs` — Show API usage costs\n"
|
||||
@@ -274,6 +276,10 @@ async def cmd_generate(update: Update, ctx: ContextTypes.DEFAULT_TYPE):
|
||||
"thread": OutputType.THREAD,
|
||||
"hilo": OutputType.THREAD,
|
||||
"informe": OutputType.REPORT,
|
||||
"report_extended": OutputType.REPORT_EXTENDED,
|
||||
"blog_extended": OutputType.BLOG_EXTENDED,
|
||||
"podcast_extended": OutputType.PODCAST_EXTENDED,
|
||||
"informe_extended": OutputType.REPORT_EXTENDED,
|
||||
}
|
||||
|
||||
if output_arg not in type_map:
|
||||
@@ -331,6 +337,9 @@ async def cmd_generate(update: Update, ctx: ContextTypes.DEFAULT_TYPE):
|
||||
OutputType.BLOG: "post.md",
|
||||
OutputType.REPORT: "report.md",
|
||||
OutputType.THREAD: "thread.txt",
|
||||
OutputType.REPORT_EXTENDED: "report_extended.md",
|
||||
OutputType.BLOG_EXTENDED: "blog_extended.md",
|
||||
OutputType.PODCAST_EXTENDED: "script_extended.md",
|
||||
}
|
||||
filename = f"researchowl_{session['topic'][:30].replace(' ', '_')}_{ext_map[output_type]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user