Skip to content

Skip token count request for DeepSeek Flash#659

Merged
jahooma merged 1 commit into
mainfrom
jahooma/skip-deepseek-count
May 12, 2026
Merged

Skip token count request for DeepSeek Flash#659
jahooma merged 1 commit into
mainfrom
jahooma/skip-deepseek-count

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 12, 2026

Summary

Skip the remote token-count API call for the base2 DeepSeek Flash freebuff root agent and use the existing local approximation instead. The bypass is scoped to the Codebuff-owned base2-free-deepseek-flash agent with the DeepSeek V4 Flash model, leaving other token-count paths unchanged. This reduces bandwidth and avoids unnecessary Anthropic token-count requests for high-volume freebuff traffic.

Checks

  • bun test common/src/tests/free-agents.test.ts
  • bun test web/src/app/api/v1/token-count/tests/token-count.test.ts
  • bun run --cwd packages/agent-runtime typecheck
  • bun run --cwd web typecheck
  • bun run --cwd common typecheck
  • git diff --check

@jahooma jahooma merged commit 2cf920d into main May 12, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/skip-deepseek-count branch May 12, 2026 20:00
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