Description
I am facing an issue where the messages in the chatbot library are not being delivered successfully. After sending a message, I immediately receive a notification saying "Not Delivered. Tap to try again."
Steps to Reproduce
@Composable
fun ChatScreen() {
val chatbot = ChatBot.Builder("MY_OPEN_AI_KEY")
.setDarkMode(true)
.addMessage(RoleEnum.ASSISTANT, "Hi, how can I help you today?")
.addPreSeededMessage(RoleEnum.SYSTEM, "You are a helpful seller car assistant")
.setInputFieldBorderWidth(1)
.build()
chatBot.ComposeScreen()
}
Refer to the Android sample provided.
Add the necessary internet permission in the app's manifest file.
Run the application on the Android Studio Emulator with Android 11.
Environment
chatbot-builder version: [e.g., 1.0.0]
Kotlin version: [e.g., 1.7.0]
Android Gradle Plugin version: [7.4.2]
Gradle JDK version: [11.0.15]
OS: [macOS]
Additional Info
I have verified that the OpenAI API key is not empty, and the device is connected to the internet. I would appreciate any guidance or assistance in resolving this issue.
Thank you for your attention to this matter.
![](https://private-user-images.githubusercontent.com/68209547/248517616-790136d0-9c41-47c3-85ac-9dac7d11fd29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzNzUxMDAsIm5iZiI6MTcxOTM3NDgwMCwicGF0aCI6Ii82ODIwOTU0Ny8yNDg1MTc2MTYtNzkwMTM2ZDAtOWM0MS00N2MzLTg1YWMtOWRhYzdkMTFmZDI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI2VDA0MDY0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5ZDEzNjVjNTVmYzRlN2M0ZWEwNWU0MzZlOGMyMjc5NjgyNzRmNGE4MzlhOTkwZWE4MWI4ZTc1YTk5YmNiY2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Oy2WnTdHU0DtuZS2h6otgLp24-Hgw-vPfQW9ZsgjNkk)