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 2397335 commit 45bde59Copy full SHA for 45bde59
app/services/discourse_ai/base_translator.rb
@@ -22,7 +22,7 @@ def translate
22
response_format: response_format,
23
)
24
25
- structured_output&.read_latest_buffered_chunk&.dig(:translation)
+ structured_output&.read_buffered_property(:translation)
26
end
27
28
def formatted_content
app/services/discourse_ai/language_detector.rb
@@ -57,7 +57,7 @@ def detect
57
58
59
60
- structured_output&.read_latest_buffered_chunk&.dig(:locale)
+ structured_output&.read_buffered_property(:locale)
61
62
63
def response_format
0 commit comments