Skip to content

Update configuration of celeris-1 model #762

Closed

Description

@orlade

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
     }
 

Activity

  1. added
    bug
    priority: medium
    triage: reproducible
    autonomous: clear
    on Aug 4, 2026
  2. 1jehuang commented on Aug 4, 2026

    @1jehuang
    Owner

    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

  3. added
    triage: needs-decision
    autonomous: no
    triage: reproducible
    triage: fixed-pending-release
    autonomous: clear
    and removed
    triage: reproducible
    autonomous: clear
    triage: needs-decision
    autonomous: no
    on Aug 4, 2026
  4. added a commit that references this issue on Aug 4, 2026
    503786d
  5. added a commit that references this issue on Aug 4, 2026
    d7feb6b
  6. added 10 commits that reference this issue on Aug 30, 2026
    6305b84
    7ca3b65
    a103076
    8e21b09
    0224963
    a1d9d40
    9052cfe
    289e228
    964b0d0
    206a844
  7. added 2 commits that reference this issue on Sep 18, 2026
    33ef5f9
    5c715ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    autonomous: clearbugpriority: mediumtriage: fixed-pending-releasetriage: reproducible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions