Skip to content

Commit 7211765

Browse files
committed
Fix JSON instance for ReasoningEffort
1 parent 0fa8bc4 commit 7211765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai-api-servant/src/OpenAI/Resources.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ data ReasoningEffort =
475475
deriving stock (Show, Eq, Generic)
476476
deriving anyclass NFData
477477

478-
$(deriveJSON (jsonOpts 3) ''ReasoningEffort)
478+
$(deriveJSON (jsonEnumsOpts 3) ''ReasoningEffort)
479479

480480
data ChatCompletionRequest = ChatCompletionRequest
481481
{ chcrModel :: ModelId,

0 commit comments

Comments
 (0)