mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
conditional import async_generator
This commit is contained in:
parent
b88145e0b1
commit
6bfde2496c
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
import requests
|
||||
import json
|
||||
from async_generator import async_generator, yield_
|
||||
|
||||
try:
|
||||
from async_generator import async_generator, yield_ # optional dependancy if you want to use acompletion + streaming
|
||||
except:
|
||||
pass # this should not throw an error, it will impact the 'import litellm' statement
|
||||
|
||||
# ollama implementation
|
||||
def get_ollama_response_stream(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue