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:
3737 print (response )
3838
3939 # Example output:
40- # total_tokens=10 cached_content_token_count=None
40+ # total_tokens=16252 cached_content_token_count=None
4141
4242 # [END googlegenaisdk_counttoken_with_txt_vid]
4343 # [END googlegenaisdk_count_tokens_with_txt_img_vid]
Original file line number Diff line number Diff line change 2121import counttoken_compute_with_txt
2222import counttoken_resp_with_txt
2323import counttoken_with_txt
24- import counttoken_with_txt_img_vid
24+ import counttoken_with_txt_vid
2525
2626os .environ ["GOOGLE_GENAI_USE_VERTEXAI" ] = "True"
2727os .environ ["GOOGLE_CLOUD_LOCATION" ] = "us-central1"
@@ -41,5 +41,5 @@ def test_counttoken_with_txt() -> None:
4141 assert counttoken_with_txt .count_tokens ()
4242
4343
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