update changelog and context default (#1045)

This commit is contained in:
ekko
2026-05-26 19:35:48 +08:00
committed by GitHub
parent 82680f5c0b
commit 42f7b64ffb
17 changed files with 150 additions and 44 deletions
@@ -8,7 +8,7 @@ import { detectHermesHome } from './hermes-path'
const HERMES_BASE = detectHermesHome()
const MODELS_DEV_CACHE = resolve(HERMES_BASE, 'models_dev_cache.json')
const DEFAULT_CONTEXT_LENGTH = 200_000
const DEFAULT_CONTEXT_LENGTH = 256_000
export interface ModelContextLengthOptions {
profile?: string
@@ -112,7 +112,7 @@ function getDefaultProvider(config: any): string | null {
/**
* Read context_length from config.yaml, only as a sibling of default.
* e.g. model:\n default: gpt-5.4\n context_length: 200000
* e.g. model:\n default: gpt-5.4\n context_length: 256000
*/
function getConfigContextLength(config: any): number | null {
const model = config?.model