Skip to content

Commit

Permalink
Update ChatInfo.kt
Browse files Browse the repository at this point in the history
处理未知key
  • Loading branch information
cikiPAD authored Dec 1, 2023
1 parent e3f5bf5 commit 67a5810
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/xyz/cssxsh/openai/chat/ChatInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ public data class ChatInfo(
@SerialName("object")
val type: String = "",
@SerialName("usage")
val usage: Usage = Usage()
)
val usage: Usage = Usage(),
@Contextual
val unknownKeys: Map<String, JsonElement>
)

0 comments on commit 67a5810

Please sign in to comment.