river
jvm
connector-openai
/
com.river.connector.openai.model
/
ChatCompletionResponse
Chat
Completion
Response
@
ExperimentalRiverApi
data
class
ChatCompletionResponse
(
val
id
:
String
,
val
objectType
:
String
?
,
val
created
:
Long
,
val
choices
:
List
<
ChatCompletionResponse.Choice
>
,
val
model
:
String
)
Members
Constructors
Chat
Completion
Response
Link copied to clipboard
constructor
(
id
:
String
,
objectType
:
String
?
,
created
:
Long
,
choices
:
List
<
ChatCompletionResponse.Choice
>
,
model
:
String
)
Types
Choice
Link copied to clipboard
data
class
Choice
(
val
delta
:
ChatCompletionResponse.Choice.Delta
,
val
index
:
Int
,
val
logprobs
:
Int
?
,
val
finishReason
:
String
?
)
Properties
choices
Link copied to clipboard
val
choices
:
List
<
ChatCompletionResponse.Choice
>
created
Link copied to clipboard
val
created
:
Long
id
Link copied to clipboard
val
id
:
String
model
Link copied to clipboard
val
model
:
String
object
Type
Link copied to clipboard
val
objectType
:
String
?