mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(proxy_cli.py): read db url from config, not just environment
This commit is contained in:
parent
2b9a4717fc
commit
43533812a7
2 changed files with 34 additions and 3 deletions
|
@ -268,10 +268,10 @@ async def acompletion(
|
|||
elif asyncio.iscoroutine(init_response):
|
||||
response = await init_response
|
||||
else:
|
||||
response = init_response
|
||||
response = init_response # type: ignore
|
||||
else:
|
||||
# Call the synchronous function using run_in_executor
|
||||
response = await loop.run_in_executor(None, func_with_context)
|
||||
response = await loop.run_in_executor(None, func_with_context) # type: ignore
|
||||
# if kwargs.get("stream", False): # return an async generator
|
||||
# return _async_streaming(
|
||||
# response=response,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue