From 4ac0d96ea54867389d8a5f646e2eb0e318ce9e47 Mon Sep 17 00:00:00 2001 From: ParthSareen Date: Tue, 8 Jul 2025 13:32:26 -0700 Subject: [PATCH] types: add context_length to ProcessResponse --- examples/ps.py | 1 + ollama/_types.py | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/ps.py b/examples/ps.py index 5f6965c9..f307831a 100644 --- a/examples/ps.py +++ b/examples/ps.py @@ -23,4 +23,5 @@ print(' Size: ', model.size) print(' Size vram: ', model.size_vram) print(' Details: ', model.details) + print(' Context length: ', model.context_length) print('\n') diff --git a/ollama/_types.py b/ollama/_types.py index b53aea9f..caf1e703 100644 --- a/ollama/_types.py +++ b/ollama/_types.py @@ -533,6 +533,7 @@ class Model(SubscriptableBaseModel): size: Optional[ByteSize] = None size_vram: Optional[ByteSize] = None details: Optional[ModelDetails] = None + context_length: Optional[int] = None models: Sequence[Model]