levalencia commited on
Commit
9dfeb67
·
1 Parent(s): 2d87de0

fix: update LLM retry and delay settings in configuration

Browse files

- Set default value for LLM_MAX_RETRIES to 50, improving error handling during model interactions.
- Increased LLM_MAX_DELAY from 60.0 to 600.0 to allow for longer wait times in case of retries, enhancing robustness in processing.

Files changed (1) hide show
  1. src/config/settings.py +2 -2
src/config/settings.py CHANGED
@@ -17,9 +17,9 @@ class Settings(BaseSettings):
17
  AZURE_OPENAI_EMBEDDING_MODEL: str = Field("text-embedding-3-small", env="AZURE_OPENAI_EMBEDDING_MODEL")
18
 
19
  # Retry configuration
20
- LLM_MAX_RETRIES: int = Field(=, env="LLM_MAX_RETRIES")
21
  LLM_BASE_DELAY: float = Field(1.0, env="LLM_BASE_DELAY")
22
- LLM_MAX_DELAY: float = Field(60.0, env="LLM_MAX_DELAY")
23
 
24
  model_config: SettingsConfigDict = {"env_file": ".env"}
25
 
 
17
  AZURE_OPENAI_EMBEDDING_MODEL: str = Field("text-embedding-3-small", env="AZURE_OPENAI_EMBEDDING_MODEL")
18
 
19
  # Retry configuration
20
+ LLM_MAX_RETRIES: int = Field(50, env="LLM_MAX_RETRIES")
21
  LLM_BASE_DELAY: float = Field(1.0, env="LLM_BASE_DELAY")
22
+ LLM_MAX_DELAY: float = Field(600.0, env="LLM_MAX_DELAY")
23
 
24
  model_config: SettingsConfigDict = {"env_file": ".env"}
25