mirror of
https://github.com/ollama/ollama-python.git
synced 2026-01-13 21:57:16 +08:00
add done reason to generate type responses
This commit is contained in:
parent
00eafed0fa
commit
eaab4778c7
@ -19,6 +19,9 @@ class BaseGenerateResponse(TypedDict):
|
||||
done: bool
|
||||
'True if response is complete, otherwise False. Useful for streaming to detect the final response.'
|
||||
|
||||
done_reason: str
|
||||
'Reason for completion. Only present when done is True.'
|
||||
|
||||
total_duration: int
|
||||
'Total duration in nanoseconds.'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user