mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-13 21:57:16 +08:00
types: add context_length to ProcessResponse (#538)
This commit is contained in:
parent
33488eee06
commit
b23d79d8b5
@ -23,4 +23,5 @@ for model in response.models:
|
||||
print(' Size: ', model.size)
|
||||
print(' Size vram: ', model.size_vram)
|
||||
print(' Details: ', model.details)
|
||||
print(' Context length: ', model.context_length)
|
||||
print('\n')
|
||||
|
||||
@ -533,6 +533,7 @@ class ProcessResponse(SubscriptableBaseModel):
|
||||
size: Optional[ByteSize] = None
|
||||
size_vram: Optional[ByteSize] = None
|
||||
details: Optional[ModelDetails] = None
|
||||
context_length: Optional[int] = None
|
||||
|
||||
models: Sequence[Model]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user