2022-04-28 15:55:27 -05:00
|
|
|
package com.theokanning.openai.classification;
|
|
|
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An object containing a response from the classification api
|
2022-04-28 16:20:15 -05:00
|
|
|
* <
|
2022-04-28 15:55:27 -05:00
|
|
|
* https://beta.openai.com/docs/api-reference/classifications/create
|
|
|
|
*/
|
2022-08-19 10:49:22 -05:00
|
|
|
@Deprecated
|
2022-04-28 15:55:27 -05:00
|
|
|
@Data
|
|
|
|
public class ClassificationResult {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A unique id assigned to this completion
|
|
|
|
*/
|
|
|
|
String completion;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The predicted label for the query text.
|
|
|
|
*/
|
|
|
|
String label;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The GPT-3 model used for completion
|
|
|
|
*/
|
|
|
|
String model;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The type of object returned, should be "classification"
|
|
|
|
*/
|
|
|
|
String object;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The GPT-3 model used for search
|
|
|
|
*/
|
|
|
|
String searchModel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A list of the most relevant examples for the query text.
|
|
|
|
*/
|
|
|
|
List<Example> selectedExamples;
|
|
|
|
}
|