Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿƒ MIKA FUNCTIONFunction: BlackboxChat()

Mika Scraper v1.1.2


Mika Scraper / BlackboxChat

Function: BlackboxChat()

BlackboxChat(text, overrides?): Promise<string>

Defined in: src/_other-scraper/blackbox.ts:58

The BlackboxChat function sends a message to the Blackbox AI API and returns a formatted response after processing the input.

Parameters

text

string

The input message intended for processing by the AI.

overrides?

Partial<BlackboxPayload>

Optional parameter allowing a partial override of specific fields in the BlackboxPayload structure.

Returns

Promise<string>

A promise that resolves to a cleaned and formatted string containing the AIโ€™s response.

Example

const userInput: string = "What is the weather today?"; const overrides: Partial<BlackboxPayload> = { tone: "informal" }; BlackboxChat(userInput, overrides) .then(response => { console.log("AI Response:", response); }) .catch(error => { console.error("Error:", error); });

Diagram: Mika Scraper

Last updated on