Skip to content

Commit 14aea0a

Browse files
ms-jpqstainless-app[bot]
authored andcommitted
chore(internal): minor refactoring of json helpers (#744)
1 parent 2e6fc06 commit 14aea0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/openai/helpers/structured_output/parsed_json.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ class << self
2828
#
2929
# @return [Object]
3030
def coerce(value, state:)
31-
state.fetch(:exactness)[:yes] += 1
3231
(state[:error] = value) if value.is_a?(StandardError)
3332

34-
value
33+
super
3534
end
3635
end
3736
end

0 commit comments

Comments
 (0)