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);
});
Last updated on