File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
openai-core/src/commonMain/kotlin/com.aallam.openai.api/exception Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
### Fixed
8
8
9
+ - ** Core** : nullable ` OpenAIErrorDetails ` fields (#315 )
9
10
- ** Messages** : nullable field ` MessageContent.Image#fileId ` (#313 )
10
11
11
12
## 3.7.0
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import kotlinx.serialization.Serializable
10
10
*/
11
11
@Serializable
12
12
public data class OpenAIError (
13
- @SerialName(" error" ) public val detail : OpenAIErrorDetails ? ,
13
+ @SerialName(" error" ) public val detail : OpenAIErrorDetails ? = null ,
14
14
)
15
15
16
16
/* *
@@ -23,8 +23,8 @@ public data class OpenAIError(
23
23
*/
24
24
@Serializable
25
25
public data class OpenAIErrorDetails (
26
- @SerialName(" code" ) val code : String? ,
27
- @SerialName(" message" ) val message : String? ,
28
- @SerialName(" param" ) val param : String? ,
29
- @SerialName(" type" ) val type : String? ,
26
+ @SerialName(" code" ) val code : String? = null ,
27
+ @SerialName(" message" ) val message : String? = null ,
28
+ @SerialName(" param" ) val param : String? = null ,
29
+ @SerialName(" type" ) val type : String? = null ,
30
30
)
You can’t perform that action at this time.
0 commit comments