File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
packages/firebase_ai/firebase_ai/test Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ void main() {
616
616
});
617
617
618
618
group ('usageMetadata parsing' , () {
619
- test ('parses usageMetadata with thoughtsTokenCount correctly ' , () {
619
+ test ('parses usageMetadata when thoughtsTokenCount is set ' , () {
620
620
final json = {
621
621
'usageMetadata' : {
622
622
'promptTokenCount' : 10 ,
@@ -647,22 +647,6 @@ void main() {
647
647
expect (response.usageMetadata, isNotNull);
648
648
expect (response.usageMetadata! .thoughtsTokenCount, isNull);
649
649
});
650
-
651
- test ('parses usageMetadata when thoughtsTokenCount is present but null' ,
652
- () {
653
- final json = {
654
- 'usageMetadata' : {
655
- 'promptTokenCount' : 10 ,
656
- 'candidatesTokenCount' : 20 ,
657
- 'totalTokenCount' : 30 ,
658
- 'thoughtsTokenCount' : null ,
659
- }
660
- };
661
- final response =
662
- VertexSerialization ().parseGenerateContentResponse (json);
663
- expect (response.usageMetadata, isNotNull);
664
- expect (response.usageMetadata! .thoughtsTokenCount, isNull);
665
- });
666
650
});
667
651
668
652
group ('groundingMetadata parsing' , () {
You can’t perform that action at this time.
0 commit comments