@cl.set_startersasyncdefstarters():return[ cl.Starter( label=">50 minutes watched", message="Compute the number of customers who watched more than 50 minutes of video this month.")]@cl.on_messageasyncdefmain(message: cl.Message): stream =await client.chat.completions.create( messages=[{"role":"user","content": template.format(input=message.content),}], stream=True,**settings) msg =await cl.Message(content="", language="sql").send()asyncfor part in stream:if token := part.choices[0].delta.content or"":await msg.stream_token(token)await msg.update()