Mika Scraper / ChaiChatChoice
Interface: ChaiChatChoice
Defined in: src/_other-scraper/mika-ai.ts:15
The ChaiChatChoice interface represents a single choice returned by the Mika AI model. It encompasses relevant information about the message and its associated metadata.
Properties
message
message:
ChaiChatMessage
Defined in: src/_other-scraper/mika-ai.ts:16
The message property contains the details of the chat message as provided by the AI model. It is an object conforming to the ChaiChatMessage interface.
index
index:
number
Defined in: src/_other-scraper/mika-ai.ts:17
The index property represents the position of the choice within the array of available choices, facilitating identification when multiple options are provided.
finish_reason
finish_reason:
string
Defined in: src/_other-scraper/mika-ai.ts:18
The finish_reason property indicates the reason for the termination of the choice generation process. This string can contain various values that signify whether the model completed its task successfully, was interrupted, or encountered any issues.
Example Usage
const choice: ChaiChatChoice = {
message: {
// properties of ChaiChatMessage
},
index: 0,
finish_reason: 'stop'
};