Mika Scraper / MikaChat
Function: MikaChat()
MikaChat(
input
):Promise
<ChaiChatSuccessResponse
|ChaiChatErrorResponse
>
Defined in: src/_other-scraper/mika-ai.ts
:45
The MikaChat
function sends a chat request with high quality and returns a structured response based on the request.
Parameters
input
Type: InternalChaiChatRequest
Description: The payload for the chat request, which includes all necessary parameters for the chat interaction.
Returns
Type: Promise
<ChaiChatSuccessResponse
| ChaiChatErrorResponse
>
Description: A promise that resolves to either a successful chat response or an error response, containing the relevant data or error message.
Usage
import { MikaChat } from 'mika-scraper';
const requestPayload: InternalChaiChatRequest = {
// Populate with required fields
};
MikaChat(requestPayload)
.then(response => {
// Handle the successful response
})
.catch(error => {
// Handle the error response
});
Last updated on