mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-12 00:14:34 +00:00
Ykeremy/fix router pass empty redis password (#143)
This commit is contained in:
parent
f175545399
commit
3cc07c9d20
4 changed files with 35 additions and 2 deletions
|
@ -33,8 +33,10 @@ class LLMRouterModelConfig:
|
|||
@dataclass(frozen=True)
|
||||
class LLMRouterConfig(LLMConfig):
|
||||
model_list: list[LLMRouterModelConfig]
|
||||
# All three redis parameters are required. Even if there isn't a password, it should be an empty string.
|
||||
redis_host: str
|
||||
redis_port: int
|
||||
redis_password: str
|
||||
main_model_group: str
|
||||
fallback_model_group: str | None = None
|
||||
routing_strategy: Literal[
|
||||
|
@ -45,7 +47,7 @@ class LLMRouterConfig(LLMConfig):
|
|||
] = "usage-based-routing"
|
||||
num_retries: int = 2
|
||||
retry_delay_seconds: int = 15
|
||||
set_verbose: bool = True
|
||||
set_verbose: bool = False
|
||||
|
||||
|
||||
class LLMAPIHandler(Protocol):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue