aaraabot-web-component

1.0.2 • Public • Published

ChatBot Web Component

A customizable ChatBot web component built with LitElement.

Installation

npm install aaraabot-web-component

Usage

<script type="module">
  import 'aaraabot-web-component';
</script>

<chat-bot
  endpoint="https://your-api-endpoint.com"
  heading="My AI Assistant"
  theme="dark"
  initial-model="gpt-4o"
  initial-temperature="0.7"
  initial-max-tokens="2048"
  initial-top-p="0.9"
></chat-bot>

Attributes

  • endpoint: API endpoint for the chatbot
  • heading: Chat window heading
  • theme: 'dark' or 'light'
  • initial-model: Initial AI model to use
  • initial-temperature: Initial temperature setting
  • initial-max-tokens: Initial max tokens setting
  • initial-top-p: Initial top-p setting

License

MIT

Package Sidebar

Install

npm i aaraabot-web-component

Weekly Downloads

8

Version

1.0.2

License

MIT

Unpacked Size

104 kB

Total Files

5

Last publish

Collaborators

  • itsmeasik