interface CohereChatCallOptions {
    streamUsage?: boolean;
}

Hierarchy (view full)

  • Toolkit
  • Partial<Omit<Cohere.ChatRequest, "message">>
  • Partial<Omit<Cohere.ChatStreamRequest, "message">>
  • Pick<ChatCohereInput, "streamUsage">
    • CohereChatCallOptions

Properties

Properties

streamUsage?: boolean

Whether or not to include token usage when streaming. This will include an extra chunk at the end of the stream with eventType: "stream-end" and the token usage in usage_metadata.

Default

{true}

Generated using TypeDoc