Skip to content

Commit 2dc7525

Browse files
authored
Update token_estimator.py
1 parent fe6f8b3 commit 2dc7525

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎python_agent_harness/token_estimator.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def context_window_for(model: str, config_path: str | os.PathLike | None = None)
4444
"""Return the context window for MODEL, or a safe fallback.
4545
4646
Delegates to ``config.get_context_window_for_model``: config-file
47-
``context_windows`` overrides (config.json) first, then substring
48-
match over CONTEXT_WINDOWS (first match wins, case-insensitive),
49-
then DEFAULT_CONTEXT_WINDOW.
47+
``llm.context_window`` first, then substring match over
48+
CONTEXT_WINDOWS (first match wins, case-insensitive), then
49+
DEFAULT_CONTEXT_WINDOW.
5050
5151
Args:
5252
model: The model ID to look up.

0 commit comments

Comments
 (0)