mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-29 18:46:59 +00:00
test: add BadRequestError to the fake openai module fixture
_transcribe_openai now imports BadRequestError for the container-retry path; the managed-gateway fake module needs to provide it.
This commit is contained in:
parent
0897e0adb8
commit
4eadabb8ea
1 changed files with 1 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ def _install_fake_openai_module(captured, transcription_response=None):
|
|||
APIError=Exception,
|
||||
APIConnectionError=Exception,
|
||||
APITimeoutError=Exception,
|
||||
BadRequestError=type("BadRequestError", (Exception,), {}),
|
||||
)
|
||||
sys.modules["openai"] = fake_module
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue