summaryrefslogtreecommitdiff
path: root/examples/server/tests/features/steps/steps.py
diff options
context:
space:
mode:
authorXuan Son Nguyen <thichthat@gmail.com>2024-03-11 10:56:41 +0100
committerGitHub <noreply@github.com>2024-03-11 10:56:41 +0100
commitcaa106d4e05a0ab94225c220b81f9e2cd522339b (patch)
treed9acbea2801af1260358cfb1e1b964a26ea6fa1f /examples/server/tests/features/steps/steps.py
parent3202361c5b1ba15e695b31209567ef42c22c5c32 (diff)
Server: format error to json (#5961)
* server: format error to json * server: do not crash on grammar error * fix api key test case * revert limit max n_predict * small fix * correct coding style * update completion.js * launch_slot_with_task * update docs * update_slots * update webui * update readme
Diffstat (limited to 'examples/server/tests/features/steps/steps.py')
-rw-r--r--examples/server/tests/features/steps/steps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/tests/features/steps/steps.py b/examples/server/tests/features/steps/steps.py
index 4e81a255..98c2b617 100644
--- a/examples/server/tests/features/steps/steps.py
+++ b/examples/server/tests/features/steps/steps.py
@@ -801,7 +801,7 @@ async def oai_chat_completions(user_prompt,
stream=enable_streaming,
seed=seed
)
- except openai.error.APIError as e:
+ except openai.error.AuthenticationError as e:
if expect_api_error is not None and expect_api_error:
return 401
else: