Skip to content

[Upstream PR #102] fix: add DeepSeek 1M context limit + fix opencode setup_url #87

@quangdang46

Description

@quangdang46

Mirrored from upstream 1jehuang/jcodePull Request #102 by @angziii
Original state: open
Created: 2026-05-02T19:54:26Z · Updated: 2026-05-02T19:54:30Z
Diff: https://github.com/1jehuang/jcode/pull/102.diff
This issue is an auto-mirrored copy. Comments and edits here are local to quangdang46/jcode — do not expect them to propagate upstream.


Summary

Two small fixes:

1. Add DeepSeek to context limit fallback (fixes #87)

DeepSeek V4 models support a 1M token context window, but fallback_context_limit_for_model() had no entry for them. Direct DeepSeek API users were capped at the 200k default instead of getting the full 1M context.

2. Fix opencode-zen / opencode-go setup_url (fixes #89)

The setup_url for these profiles pointed to opencode.ai/docs/providers, which was confusing for jcode users who saw opencode documentation links in jcode's UI. Changed to point to the jcode installation docs.

Changes

  • src/provider/models.rs: +4 lines for deepseek 1M context
  • crates/jcode-provider-metadata/src/lib.rs: 2 lines, updated setup_url strings

Test plan

  • DeepSeek models now resolve to 1,000,000 context limit instead of 200,000
  • opencode-zen and opencode-go setup_url no longer contains opencode.ai

View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions