mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fixed memory leak and added test
This commit is contained in:
parent
4c8b4fefc9
commit
a3c70a099e
2 changed files with 22 additions and 0 deletions
|
@ -460,6 +460,7 @@ class OpenAIChatCompletion(BaseLLM):
|
|||
else:
|
||||
headers = {}
|
||||
response = raw_response.parse()
|
||||
raw_response.http_response.close()
|
||||
return headers, response
|
||||
except Exception as e:
|
||||
if raw_response is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue