diff --git a/generative-ai/snippets/count-tokens/countTokens.js b/generative-ai/snippets/count-tokens/countTokens.js index b1d79966b8..81497b4dd7 100644 --- a/generative-ai/snippets/count-tokens/countTokens.js +++ b/generative-ai/snippets/count-tokens/countTokens.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_token_count] const {GoogleGenAI} = require('@google/genai'); /** @@ -51,7 +50,6 @@ async function countTokens( const usageMetadata = result.usageMetadata; console.log('Response tokens count: ', usageMetadata); } -// [END generativeaionvertexai_gemini_token_count] countTokens(...process.argv.slice(2)).catch(err => { console.error(err.message); diff --git a/generative-ai/snippets/count-tokens/countTokensAdvanced.js b/generative-ai/snippets/count-tokens/countTokensAdvanced.js index 9de2ff43a1..df90a199cf 100644 --- a/generative-ai/snippets/count-tokens/countTokensAdvanced.js +++ b/generative-ai/snippets/count-tokens/countTokensAdvanced.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_token_count_advanced] const {GoogleGenAI} = require('@google/genai'); /** * TODO(developer): Update these variables before running the sample. @@ -63,7 +62,6 @@ async function countTokens( console.log('Candidates Token Count:', usageMetadata.candidatesTokenCount); console.log('Total Token Count:', usageMetadata.totalTokenCount); } -// [END generativeaionvertexai_gemini_token_count_advanced] countTokens(...process.argv.slice(2)).catch(err => { console.error(err.message);