Repository navigation
Closed
Labels
autonomous: clearHands-off: unambiguous bug, obvious fix, no decisions. Don't even look - an agent can fully solve.bugSomething isn't workingpriority: mediumP2 - normal prioritytriage: fixed-pending-releaseFixed in code/committed; will close automatically on next releasetriage: reproducibleClear repro + clear fix path
Description
The limits and constraints of the celeris-1 model have changed. See https://docs.celeris.ai/api-reference
diff --git a/crates/jcode-provider-core/src/models.rs b/crates/jcode-provider-core/src/models.rs
index 997e99e39..78083489e 100644
--- a/crates/jcode-provider-core/src/models.rs
+++ b/crates/jcode-provider-core/src/models.rs
@@ -345,9 +345,9 @@ pub fn open_weight_family_context_limit(model: &str) -> Option<usize> {
return Some(204_800);
}
- // --- Celeris celeris-1: 8,192 total (prompt + completion) window ---
+ // --- Celeris celeris-1: 131,072 total (prompt + completion) window ---
if m.contains("celeris") {
- return Some(8_192);
+ return Some(131_072);
}
// --- Xiaomi MiMo V2 family: 256K context ---
diff --git a/crates/jcode-provider-openrouter-runtime/src/lib.rs b/crates/jcode-provider-openrouter-runtime/src/lib.rs
index 11cd8eb57..bd23d5322 100644
--- a/crates/jcode-provider-openrouter-runtime/src/lib.rs
+++ b/crates/jcode-provider-openrouter-runtime/src/lib.rs
@@ -1098,14 +1098,6 @@ impl OpenRouterProvider {
}
}
- // Celeris rejects `max_tokens` values that are not a positive multiple
- // of 256, and requires prompt + max_tokens <= 8,192. Its own default
- // (2,048) leaves only ~6K of prompt room, so ask for a smaller
- // completion budget to keep more of the context window usable.
- if profile_id.is_some_and(|id| id.eq_ignore_ascii_case("celeris")) {
- return Some(1_024);
- }
-
None
}
Metadata
Metadata
Assignees
Labels
autonomous: clearHands-off: unambiguous bug, obvious fix, no decisions. Don't even look - an agent can fully solve.bugSomething isn't workingpriority: mediumP2 - normal prioritytriage: fixed-pending-releaseFixed in code/committed; will close automatically on next releasetriage: reproducibleClear repro + clear fix path
Activity
1jehuang commentedon Aug 4, 2026
Implemented the documented Celeris configuration update in #782.
The branch now reports a 131,072-token combined context window, removes the obsolete 1,024-token completion override, and adds focused regression coverage. Both modified provider packages pass their full test suites. The values were confirmed against https://docs.celeris.ai/api-reference.
--- — Jcode agent (automated triage), on behalf of @1jehuang
Merge pull request #782 from 1jehuang/fix/issue-762-celeris-config
fix: update Celeris model limits (fixes 1jehuang#762)
fix: update Celeris model limits (fixes 1jehuang#762)
Merge pull request 1jehuang#782 from 1jehuang/fix/issue-762-celeris-c…
fix: update Celeris model limits (fixes 1jehuang#762)
Merge pull request 1jehuang#782 from 1jehuang/fix/issue-762-celeris-c…
fix: update Celeris model limits (fixes 1jehuang#762)
Merge pull request 1jehuang#782 from 1jehuang/fix/issue-762-celeris-c…
fix: update Celeris model limits (fixes 1jehuang#762)
Merge pull request 1jehuang#782 from 1jehuang/fix/issue-762-celeris-c…
fix: update Celeris model limits (fixes 1jehuang#762)
Merge pull request 1jehuang#782 from 1jehuang/fix/issue-762-celeris-c…
fix: update Celeris model limits (fixes 1jehuang#762)
Merge pull request 1jehuang#782 from 1jehuang/fix/issue-762-celeris-c…