Hello AI Chatbot
View App View Code on GitHubshiny create --template basic-chat --mode express --github posit-dev/py-shiny-templates/gen-aishiny create --template basic-chat --mode core --github posit-dev/py-shiny-templates/gen-aiA basic chatbot powered by an Large Language Model (LLM) from Anthropic. To learn more, see the article on Gen AI chatbots.
Other model providers
This particular template uses chatlas.ChatAnthropic() to do response generation via Anthropic. With chatlas, it’s easy to switch to other providers. Just change ChatAnthropic() with another provider (e.g., ChatOpenAI()).