cohere-ai / cohere-typescript

The Cohere TypeScript SDK
https://docs.cohere.ai
MIT License
127 stars 18 forks source link

Update classify endpoint response values #34

Closed wujessica closed 2 years ago

wujessica commented 2 years ago

The following fields in the Classify response are being updated: option -> label confidence -> value

New response:

{
  classifications: {
    /** The input that is being classified. */
    input: string;
    /** The predicted label for the input. */
    prediction: string;
    /** The confidence score for each option. */
    confidences: { label: string; value: number }[];
  }[]
}