question_1="What is the capital of the United States?",
question_2="List two local attractions.",
)
forminstate.messages():
print(m["role"],":",m["content"])
print("\n-- answer_1 --\n",state["answer_1"])
if__name__=="__main__":
importtime
start_time=time.time()
sgl.set_default_backend(sgl.OpenAI("gpt-4"))
test_sglang()
print(f"Time taken: {time.time()-start_time:.2f} seconds, or {(time.time()-start_time)/60:.2f} minutes, or {(time.time()-start_time)/3600:.2f} hours.\a")