-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add addition error propagation to tests
- Loading branch information
1 parent
4157c7a
commit 8c95706
Showing
2 changed files
with
94 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from wandbot.configs.chat_config import ChatConfig | ||
|
||
class TestConfig(ChatConfig): | ||
"""Test configuration with minimal retry settings for faster tests""" | ||
|
||
# Override LLM retry settings | ||
llm_max_retries: int = 1 | ||
llm_retry_min_wait: int = 1 | ||
llm_retry_max_wait: int = 2 | ||
llm_retry_multiplier: int = 1 | ||
|
||
# Override Embedding retry settings | ||
embedding_max_retries: int = 1 | ||
embedding_retry_min_wait: int = 1 | ||
embedding_retry_max_wait: int = 2 | ||
embedding_retry_multiplier: int = 1 | ||
|
||
# Override Reranker retry settings | ||
reranker_max_retries: int = 1 | ||
reranker_retry_min_wait: int = 1 | ||
reranker_retry_max_wait: int = 2 | ||
reranker_retry_multiplier: int = 1 | ||
|
||
# Override retry settings for faster tests | ||
max_retries: int = 1 # Only try once | ||
retry_min_wait: int = 1 # Wait 1 second minimum | ||
retry_max_wait: int = 2 # Wait 2 seconds maximum | ||
retry_multiplier: int = 1 # No exponential increase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters