prompt read from stdin

This commit is contained in:
2026-09-27 23:17:21 -03:00
parent 77825b7196
commit a8992b446d
+1 -1
View File
@@ -144,7 +144,7 @@ async def do_async_turn(conf):
def main(): def main():
conf = parse_args() conf = parse_args()
if conf.prompt == "-" if conf.prompt == "-":
conf.prompt = sys.stdin.read() conf.prompt = sys.stdin.read()
if conf.prompt: if conf.prompt:
write(f"[{str(bb.model)}]Ask {conf.model}»[/] [{str(bb.prompt)}]{conf.prompt}[/]") write(f"[{str(bb.model)}]Ask {conf.model}»[/] [{str(bb.prompt)}]{conf.prompt}[/]")