commonMain.com.xebia.functional.openai.generated.model.CreateCompletionResponseChoicesInner.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xef-openai-client Show documentation
Show all versions of xef-openai-client Show documentation
Building applications with LLMs through composability in Kotlin
/**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package com.xebia.functional.openai.generated.model
import com.xebia.functional.openai.generated.model.CreateCompletionResponseChoicesInnerLogprobs
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Contextual
import kotlin.js.JsName
import kotlinx.serialization.json.*
/**
*
*
* @param finishReason The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, or `content_filter` if content was omitted due to a flag from our content filters.
* @param index
* @param logprobs
* @param text
*/
@Serializable
data class CreateCompletionResponseChoicesInner (
/* The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, or `content_filter` if content was omitted due to a flag from our content filters. */
@SerialName(value = "finish_reason") val finishReason: CreateCompletionResponseChoicesInner.FinishReason,
@SerialName(value = "index") val index: kotlin.Int,
@SerialName(value = "logprobs") val logprobs: CreateCompletionResponseChoicesInnerLogprobs?,
@SerialName(value = "text") val text: kotlin.String
) {
/**
* The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, or `content_filter` if content was omitted due to a flag from our content filters.
*
* Values: stop,length,content_filter
*/
@Serializable
enum class FinishReason(val value: kotlin.String) {
@SerialName(value = "stop") stop("stop"),
@SerialName(value = "length") @JsName("length_type") length("length"),
@SerialName(value = "content_filter") content_filter("content_filter");
}
}