Skip to content

Small fix in isItemTooBig #5154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Jazzcort
Copy link
Contributor

Description

  1. Provide model name for tokens counting:
    Although Continue now uses the Llama tokenizer for most models,
    it's still important to provide the model name to the
    countTokens function. This ensures flexibility in case we
    introduce more specialized tokenizers for different models in
    the future.

  2. Fix typo in error dialog:
    Fixed typo from "connot" to "cannot"

  3. Delete redundant calling of loadConfig:
    Config has already been gathered at the top of this function,
    so we can directly use this config instead of calling
    loadConfig again.

Although Continue now uses the Llama tokenizer for most models,
it's still important to provide the model name to the
countTokens function. This ensures flexibility in case we
introduce more specialized tokenizers for different models in
the future.
Fixed typo from "connot" to "cannot"
Config has already been gathered at the top of this function,
so we can directly use this config instead of calling
loadConfig again.
@Jazzcort Jazzcort requested a review from a team as a code owner April 14, 2025 16:15
@Jazzcort Jazzcort requested review from RomneyDa and removed request for a team April 14, 2025 16:15
Copy link

netlify bot commented Apr 14, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 73c0c20
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67fd34b6fd9ee200083708ca

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant