import { ChatCompletionResponse } from "@mistralai/mistralai-gcp/models/components";
let value: ChatCompletionResponse = {
id: "cmpl-e5cc70bb28c444948073e77776eb30ef",
object: "chat.completion",
model: "mistral-small-latest",
usage: {
promptTokens: 16,
completionTokens: 34,
totalTokens: 50,
},
created: 1702256327,
choices: [
{
index: 0,
message: {},
finishReason: "stop",
},
],
};
Field |
Type |
Required |
Description |
Example |
id |
string |
✔️ |
N/A |
cmpl-e5cc70bb28c444948073e77776eb30ef |
object |
string |
✔️ |
N/A |
chat.completion |
model |
string |
✔️ |
N/A |
mistral-small-latest |
usage |
components.UsageInfo |
✔️ |
N/A |
|
created |
number |
➖ |
N/A |
1702256327 |
choices |
components.ChatCompletionChoice[] |
➖ |
N/A |
|