mirror of
https://github.com/ollama/ollama.git
synced 2025-08-04 01:03:16 +02:00
better streaming plus gif
Signed-off-by: Matt Williams <m@technovangelist.com>
This commit is contained in:
@@ -41,7 +41,7 @@ for line in response.iter_lines():
|
||||
if line:
|
||||
json_data = json.loads(line)
|
||||
if json_data['done'] == False:
|
||||
print(json_data['response'], end='')
|
||||
print(json_data['response'], end='', flush=True)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user