Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Create a new class `Conversation` in `api.ts` to handle conversations. - Move the logic for getting messages and sending messages to the `Conversation` class. - Add a constructor to initialize the `Conversation` with the appropriate API instance and conversation ID. - Add a `getMessages` method to fetch messages for the conversation. - Add a `chat` method to send a message in the conversation. - Update the code to use the `Conversation` class instead of making API calls directly. - Update the `Home` component to use the new `Conversation` class for fetching messages and sending messages. - Remove unused imports and variables.
- Loading branch information