mirror of
https://github.com/kharonsec/ollama-python
synced 2026-04-25 15:14:55 +02:00
Merge pull request #154 from ollama/done-reason
add done reason to generate type responses
This commit is contained in:
@@ -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.'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user