SPAs ch6 adding chat model