File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def count_tokens() -> int:
37
37
print (response )
38
38
39
39
# Example output:
40
- # total_tokens=10 cached_content_token_count=None
40
+ # total_tokens=16252 cached_content_token_count=None
41
41
42
42
# [END googlegenaisdk_counttoken_with_txt_vid]
43
43
# [END googlegenaisdk_count_tokens_with_txt_img_vid]
Original file line number Diff line number Diff line change 21
21
import counttoken_compute_with_txt
22
22
import counttoken_resp_with_txt
23
23
import counttoken_with_txt
24
- import counttoken_with_txt_img_vid
24
+ import counttoken_with_txt_vid
25
25
26
26
os .environ ["GOOGLE_GENAI_USE_VERTEXAI" ] = "True"
27
27
os .environ ["GOOGLE_CLOUD_LOCATION" ] = "us-central1"
@@ -41,5 +41,5 @@ def test_counttoken_with_txt() -> None:
41
41
assert counttoken_with_txt .count_tokens ()
42
42
43
43
44
- def test_counttoken_with_txt_img_vid () -> None :
45
- assert counttoken_with_txt_img_vid .count_tokens ()
44
+ def test_counttoken_with_txt_vid () -> None :
45
+ assert counttoken_with_txt_vid .count_tokens ()
You can’t perform that action at this time.
0 commit comments