Skip to content

Commit

Permalink
fix: more loose rate limitting
Browse files Browse the repository at this point in the history
  • Loading branch information
supreme committed May 21, 2024
1 parent 3c59121 commit c268695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/synthia/miner/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ClaudeProviders(Enum):

def stake_to_ratio(stake: int, multiplier: int = 1) -> float:
max_ratio = 4
base_ratio = 13
base_ratio = 39
if multiplier <= 1/max_ratio:
raise ValueError(
f"Given multiplier {multiplier} would set 0 tokens for all stakes"
Expand All @@ -34,10 +34,10 @@ def mult_2(x: int) -> int:
match stake:
case _ if stake < to_nano(10_000):
return 0
case _ if stake < to_nano(500_000): # 20 * 10 ** -1 request per 4000 * 10 ** -1 second
case _ if stake < to_nano(500_000): # x request per 400 second
return base_ratio * multiplier
case _:
return mult_2(base_ratio) * multiplier # 30 * 10 ** -1 requests per 4000 * 10 ** -1 second
return mult_2(base_ratio) * multiplier # x requests per 400 second



Expand Down

0 comments on commit c268695

Please sign in to comment.