We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea61dc commit 71b91a5Copy full SHA for 71b91a5
google-gemini-client/src/main/scala/io/cequence/openaiscala/gemini/JsonFormats.scala
@@ -366,7 +366,14 @@ trait JsonFormats {
366
implicit val promptFeedbackWrites: Writes[PromptFeedback] = (
367
(__ \ "blockReason").writeNullable[BlockReason] and
368
(__ \ "safetyRatings").write[Seq[SafetyRating]]
369
- )(unlift(PromptFeedback.unapply))
+ )(
370
+ // somehow unlift is not working in Scala3
371
+ (x: PromptFeedback) =>
372
+ (
373
+ x.blockReason,
374
+ x.safetyRatings
375
+ )
376
377
378
implicit val promptFeedbackFormat: Format[PromptFeedback] =
379
Format(promptFeedbackReads, promptFeedbackWrites)
0 commit comments