Code Monkey home page Code Monkey logo

hexascribe / chatbot-builder Goto Github PK

View Code? Open in Web Editor NEW
54.0 1.0 4.0 2.94 MB

ChatBot Builder is a kotlin compose multiplatform library that you can seamlessly customize the Chat UI to match the look and feel of your application, while also having the ability to define specific instructions for the bot's behavior.

License: Apache License 2.0

Ruby 3.00% Kotlin 59.98% Shell 0.21% Objective-C 36.80%
android chatbot chatgpt ios kotlin kotlin-library kotlin-multiplatform-mobile openai chatgpt3 compose

chatbot-builder's People

Contributors

osugikoji avatar xyzwilliamxyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chatbot-builder's Issues

Not Delivered. Tap to try again

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

  • Obtain the OpenAI API Key from the OpenAI Platform Account.
  • Add the mavenCentral() repository.
  • Include the dependency for the chatbot library.
  • Implement the following Kotlin code snippet:
@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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.