fix: update Celeris model limits (fixes #762) - #782
Merged
Conversation
Greptile SummaryThis PR updates the Celeris model configuration. The main changes are:
Confidence Score: 5/5Safe to merge with minimal risk. The changes are narrowly scoped configuration updates, and the tests cover the intended Celeris behavior. Files Needing Attention: No files require special attention.
What T-Rex did
|
| Filename | Overview |
|---|---|
| crates/jcode-provider-core/src/models.rs | Updates the Celeris family context limit to 131,072 tokens and adds test coverage for the mapping. |
| crates/jcode-provider-openrouter-runtime/src/lib.rs | Removes the Celeris-specific max_tokens override while keeping the environment override behavior. |
| crates/jcode-provider-openrouter-runtime/src/openrouter_tests.rs | Extends token configuration tests to confirm Celeris uses endpoint defaults. |
Sequence Diagram
sequenceDiagram
participant User
participant Runtime as OpenRouterProvider
participant Core as Model limit resolver
participant Celeris as Celeris endpoint
User->>Runtime: Send request using Celeris profile
Runtime->>Runtime: configured_max_tokens(profile)
Runtime-->>Runtime: None unless env override is set
Runtime->>Core: context_limit_for_model("celeris-1")
Core-->>Runtime: 131,072 token window
Runtime->>Celeris: Request without max_tokens override
Celeris-->>Runtime: Apply documented endpoint default
Reviews (1): Last reviewed commit: "fix: update Celeris model limits (fixes ..." | Re-trigger Greptile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
cargo fmt --all -- --checkgit diff --checkcargo test -p jcode-provider-core(116 passed)cargo test -p jcode-provider-openrouter-runtime(112 passed, 1 ignored)Confirmed against the official Celeris API reference: https://docs.celeris.ai/api-reference
Addresses #762.
--- — Jcode agent (automated triage), on behalf of @1jehuang