removed close

Can't just close() the response because you still need to stream the results
This commit is contained in:
Sunny Wan 2025-03-05 17:21:16 -05:00
parent a3c70a099e
commit 2ab4fc96e4

View file

@ -460,7 +460,7 @@ class OpenAIChatCompletion(BaseLLM):
else:
headers = {}
response = raw_response.parse()
raw_response.http_response.close()
# raw_response.http_response.close()
return headers, response
except Exception as e:
if raw_response is not None: