[update] random seed

This commit is contained in:
jingyaogong 2026-03-27 21:20:02 +08:00
parent 6b0b0c5e2f
commit b1865f75c2

View File

@ -67,7 +67,6 @@ def main():
prompt_iter = prompts if input_mode == 0 else iter(lambda: input('💬: '), '')
for prompt in prompt_iter:
setup_seed(random.randint(0, 31415926))
setup_seed(42)
if input_mode == 0: print(f'💬: {prompt}')
conversation = conversation[-args.historys:] if args.historys else []
conversation.append({"role": "user", "content": prompt})