## Functions
Promise.<void>Initializes the ChatBot instance.
Switches the current model for the chat.
Array.<Model>Lists available models that can be used with the chat.
Array.<Sesson>Lists available sessions for the chat.
Model | nullReturns the currently selected model for the chat.
Promise.<Array.<Sesson>>Fetches remote conversations from a server.
Promise.<Array.<Model>>Fetches remote LLMs from a server.
Promise.<Conversation>Initializes a new chat conversation.
Promise.<ChatResponse>Initiates a chat with the provided text.
Promise.<Conversation>get the details of current conversation
Promise.<void>
Initializes the ChatBot instance.
**Kind**: global function
## switchModel(value)
Switches the current model for the chat.
**Kind**: global function
**Throws**:
- Error If the provided model ID is not a string or if the model is not found.
| Param | Type | Description |
| --- | --- | --- |
| value | string | The ID of the model to switch to. |
## listAvilableModels() ⇒ Array.<Model>
Lists available models that can be used with the chat.
**Kind**: global function
**Returns**: Array.<Model> - An array of available model names.
## listAvilableSesson() ⇒ Array.<Sesson>
Lists available sessions for the chat.
**Kind**: global function
**Returns**: Array.<Sesson> - An array of available sessions.
## showCurrentModel() ⇒ Model \| null
Returns the currently selected model for the chat.
**Kind**: global function
**Returns**: Model \| null - The current model.
## getRemoteConversations() ⇒ Promise.<Array.<Sesson>>
Fetches remote conversations from a server.
**Kind**: global function
**Returns**: Promise.<Array.<Sesson>> - A promise that resolves to an array of fetched conversations.
**Throws**:
- Error If the server response is not successful.
## getRemoteLlms() ⇒ Promise.<Array.<Model>>
Fetches remote LLMs from a server.
**Kind**: global function
**Returns**: Promise.<Array.<Model>> - A promise that resolves to an array of fetched conversations.
**Throws**:
- Error If the server response is not successful.
## getNewChat() ⇒ Promise.<Conversation>
Initializes a new chat conversation.
**Kind**: global function
**Returns**: Promise.<Conversation> - The conversation ID of the new chat.
**Throws**:
- Error If the creation of a new conversation fails.
## chat(text, currentConversionID, options) ⇒ Promise.<ChatResponse>
Initiates a chat with the provided text.
**Kind**: global function
**Returns**: Promise.<ChatResponse> - An object containing conversation details.
**Throws**:
- Error If there is an issue with the chat request.
| Param | Type | Description |
| --- | --- | --- |
| text | string | The user's input text or prompt. |
| currentConversionID | string | The conversation ID for the current chat. |
| options | ChatOptions | |
## getConversationHistory() ⇒ Promise.<Conversation>
get the details of current conversation
**Kind**: global function
**Returns**: Promise.<Conversation> - A Promise that return conversation details
**Throws**:
- Error If there is an api error