fix(proxy_server.py): fix exception raising

This commit is contained in:
Krrish Dholakia 2024-02-12 11:13:02 -08:00
parent 8f989235ea
commit 1a452057af
2 changed files with 24 additions and 10 deletions

View file

@ -160,7 +160,6 @@ def test_chat_completion_exception_any_model(client):
response = client.post("/chat/completions", json=test_data)
json_response = response.json()
print("keys in json response", json_response.keys())
assert json_response.keys() == {"error"}
# make an openai client to call _make_status_error_from_response