ExperimentalOpenAI
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS] )
This annotation marks a library API as experimental.
Any usage of a declaration annotated with @ExperimentalOpenAI
must be accepted either by annotating that usage with the OptIn annotation, e.g. @OptIn(ExperimentalOpenAI::class)
, or by using the compiler argument -Xopt-in=com.aallam.openai.api.ExperimentalOpenAI
.