Skip to content

Commit e282c6c

Browse files
committed
fix(runs): Run#temparature and Run#topP as double
1 parent 13f3806 commit e282c6c

File tree

1 file changed

+2
-2
lines changed
  • openai-core/src/commonMain/kotlin/com.aallam.openai.api/run

1 file changed

+2
-2
lines changed

openai-core/src/commonMain/kotlin/com.aallam.openai.api/run/Run.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ public data class Run(
113113
/**
114114
* The Unix timestamp (in seconds) for when the run was completed.
115115
*/
116-
@SerialName("temperature") val temperature: Int? = null,
116+
@SerialName("temperature") val temperature: Double? = null,
117117

118118
/**
119119
* The nucleus sampling value used for this run. If not set, defaults to 1.
120120
*/
121-
@SerialName("top_p") val topP: Int? = null,
121+
@SerialName("top_p") val topP: Double? = null,
122122

123123
/**
124124
* The maximum number of prompt tokens specified to have been used over the course of the run.

0 commit comments

Comments
 (0)