Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 3.91 KB

chatcompletionresponse.md

File metadata and controls

37 lines (32 loc) · 3.91 KB

ChatCompletionResponse

Example Usage

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",
    },
  ],
};

Fields

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