1e9a9adbad
Build Electron Desktop App / Validate version (push) Failing after 38s
Build Electron Desktop App / Build Electron (macos-arm64) (push) Has been skipped
Build Electron Desktop App / Build Electron (linux) (push) Has been skipped
Build Electron Desktop App / Build Electron (macos-intel) (push) Has been skipped
Build Electron Desktop App / Build Electron (windows) (push) Has been skipped
Build Electron Desktop App / Create Release (push) Has been skipped
feat(claude): [1m] suffix for 1M extended context (PR #311 @DavyMassoneto) feat(registry): new models for iFlow, Qwen, Kimi (PR #326 @nyatoru) fix(cli): postinstall binary copy instead of rebuild (PR #327 @ardaaltinors, fixes #321) docs: English Remote OAuth guide in README (PR #329, fixes #318) test: 3 unit tests for parseModel [1m] suffix
19 lines
764 B
JavaScript
19 lines
764 B
JavaScript
// [1m] extended context suffix — PR #311 (DavyMassoneto)
|
|
test("[1m] suffix: strips suffix and sets extendedContext=true", () => {
|
|
const result = parseModel("claude-sonnet-4-6[1m]");
|
|
assert.strictEqual(result.model, "claude-sonnet-4-6");
|
|
assert.strictEqual(result.extendedContext, true);
|
|
});
|
|
|
|
test("[1m] suffix: normal model has extendedContext=false", () => {
|
|
const result = parseModel("claude-sonnet-4-6");
|
|
assert.strictEqual(result.model, "claude-sonnet-4-6");
|
|
assert.strictEqual(result.extendedContext, false);
|
|
});
|
|
|
|
test("[1m] suffix: works with provider prefix", () => {
|
|
const result = parseModel("claude/claude-sonnet-4-6[1m]");
|
|
assert.strictEqual(result.model, "claude-sonnet-4-6");
|
|
assert.strictEqual(result.extendedContext, true);
|
|
});
|