In this video, you replayed one real practice session on the club’s page, and looked back at the steps of the course behind each part of it.
What You Can Do Now
You can now stream a model’s answer from a Node server to a web page as it’s written, through streamAnswer() in the model module. You can keep the conversation’s history within the context window and let the user stop an answer, with the key kept on the server.
One Practice Session
Here’s one real session on the finished club’s page, with one provider’s fast model. Mei sent her first message, spotted a mistake and clicked Stop, fixed her message and sent it again, then ordered a green tea. The page showed this. Your replies will differ:
Hola, me llamo Mei. Es mi primero vez aquí.
¡Hola, Mei, bienvenida a nuestro café! [Stopped]
Hola, me llamo Mei. Es mi primera vez aquí.
¡Hola, Mei, bienvenida a nuestro café! Qué bien que estés aquí por primera
vez. ¿Qué le gustaría tomar hoy?
Tip: "Es mi primero vez" should be "Es mi primera vez," because "vez" is
feminine, so the adjective must be "primera" too.
Un té verde. ¿Puede escribir mi nombre en el vaso?
¡Claro que sí, Mei! Enseguida le traigo su té verde con su nombre en el
vaso. ¿Desea algo para acompañar, como una tostada o un pastelito?
Tip: Your sentence is correct! Just note that "¿Puede escribir mi nombre en
el vaso?" is a polite request, and it works well in a café.
And the server’s terminal showed this: