Mika Scraper / GeminiChat
Function: GeminiChat()
GeminiChat(
prompt
):Promise
<undefined
|string
>
Defined in: src/gemini/gemini-ask.ts:10
The GeminiChat
function generates a text response based on the provided prompt. This is useful for applications requiring dynamic text generation in response to user input.
Parameters
prompt
string
A text prompt that serves as the basis for generating a response. This input influences the content and context of the generated text.
Returns
Promise
<undefined
| string
>
A promise that resolves to either undefined
or a string containing the generated text response. If the prompt is valid, a textual output will be returned; otherwise, it may resolve to undefined
.
Example
const response = await GeminiChat("What is the weather like today?");
if (response) {
console.log(response);
}
Last updated on