Chat client sample
The AI Chat sample is meant to be a full-fledged chat app built using the Flutter AI Toolkit and Vertex AI for Firebase. In addition to all of the multi-shot, multi-media, streaming features that it gets from the AI Toolkit, the AI Chat sample shows how to store and manage multiple chats at once in your own apps. On desktop form-factors, the AI Chat sample looks like the following:
On mobile form-factors, it looks like this:
The chats are stored in an authenticated Cloud Firestore database; any authenticated user can have as many chats as they like.
In addition, for each new chat, while the user can manually title it whatever they like, the initial prompt and response is used to ask the LLM what an appropriate title should be. In fact, the titles of the chats in the screenshots in this page were set automatically.
To build and run the sample, follow the instructions in the AI Chat README.
除非另有说明,本文档之所提及适用于 Flutter 的最新稳定版本,本页面最后更新时间: 2024-12-17。 查看文档源码 或者 为本页面内容提出建议。