Skip to content

Commit

Permalink
fix: status code
Browse files Browse the repository at this point in the history
  • Loading branch information
PsicoThePato committed May 13, 2024
1 parent 7c63246 commit 9a33313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/synthia/miner/BaseLLM.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def generate(self, prompt: str) -> dict[str, str]:
try:
message = self.prompt(prompt, self.get_context_prompt(self.max_tokens))
except Exception as e:
raise HTTPException(status_code=e.status_code, detail=str(e)) from e # type: ignore
status_code = getattr(e, 'status_code', 500)
raise HTTPException(status_code=status_code, detail=str(e)) from e

match message:
case None, explanation:
Expand Down
2 changes: 1 addition & 1 deletion src/synthia/validator/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ValidatorSettings(BaseSettings):
# == Scoring ==
# sleep time between each iteration
# (we are aiming at 50 block subnet tempo, with 8 second block time)
iteration_interval: int = 800
iteration_interval: int = 1600
max_allowed_weights: int = 420 # this is a global parameter of the maximum weights that a validator can set
hf_uploader_ss58: str = "5EX6ixabe8fiWHySw4SYaJAkaHLKeqSJ3rv7so2FrLC2cfGV"

Expand Down

0 comments on commit 9a33313

Please sign in to comment.