File tree Expand file tree Collapse file tree 2 files changed +760
-2
lines changed
packages/firebase_vertexai/firebase_vertexai Expand file tree Collapse file tree 2 files changed +760
-2
lines changed Original file line number Diff line number Diff line change @@ -591,7 +591,12 @@ enum HarmBlockThreshold {
591591 high ('BLOCK_ONLY_HIGH' ),
592592
593593 /// Always show regardless of probability of unsafe content.
594- none ('BLOCK_NONE' );
594+ none ('BLOCK_NONE' ),
595+
596+ /// All content is allowed regardless of harm.
597+ ///
598+ /// metadata will not be included in the response.
599+ off ('OFF' );
595600
596601 const HarmBlockThreshold (this ._jsonString);
597602
@@ -602,6 +607,7 @@ enum HarmBlockThreshold {
602607 'BLOCK_MEDIUM_AND_ABOVE' => HarmBlockThreshold .medium,
603608 'BLOCK_ONLY_HIGH' => HarmBlockThreshold .high,
604609 'BLOCK_NONE' => HarmBlockThreshold .none,
610+ 'OFF' => HarmBlockThreshold .off,
605611 _ => throw FormatException (
606612 'Unhandled HarmBlockThreshold format' , jsonObject),
607613 };
@@ -797,7 +803,7 @@ final class GenerationConfig extends BaseGenerationConfig {
797803 if (responseMimeType case final responseMimeType? )
798804 'responseMimeType' : responseMimeType,
799805 if (responseSchema case final responseSchema? )
800- 'responseSchema' : responseSchema,
806+ 'responseSchema' : responseSchema. toJson () ,
801807 };
802808}
803809
You can’t perform that action at this time.
0 commit comments