Skip to content

Commit c9d086d

Browse files
ran black to fix formatting
1 parent 3cce64f commit c9d086d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/electripy/ai/llm_gateway/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
from typing import TYPE_CHECKING
2626

2727
if TYPE_CHECKING: # pragma: no cover - import-time only
28-
from .domain import LlmRequest, LlmResponse
29-
from .ports import PromptGuardPort, RedactorPort
28+
from .domain import LlmRequest, LlmResponse
29+
from .ports import PromptGuardPort, RedactorPort
3030

3131

3232
LlmCallHook = Callable[["LlmRequest", "LlmResponse", float], None]

src/electripy/ai/llm_gateway/providers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ def _normalise_provider_name(provider: str) -> str:
6868
def register_llm_provider(
6969
name: str,
7070
*,
71-
sync_factory: Callable[[LlmGatewaySettings, dict[str, Any]], LlmGatewaySyncClient] | None = None,
72-
async_factory: Callable[[LlmGatewaySettings, dict[str, Any]], LlmGatewayAsyncClient] | None = None,
71+
sync_factory: (
72+
Callable[[LlmGatewaySettings, dict[str, Any]], LlmGatewaySyncClient] | None
73+
) = None,
74+
async_factory: (
75+
Callable[[LlmGatewaySettings, dict[str, Any]], LlmGatewayAsyncClient] | None
76+
) = None,
7377
) -> None:
7478
"""Register custom LLM provider factories.
7579

tests/concurrency/test_rate_limiter_properties.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
rate=st.floats(min_value=0.1, max_value=100.0),
1515
capacity_multiplier=st.floats(min_value=0.5, max_value=5.0),
1616
)
17-
async def test_available_tokens_never_exceeds_capacity(rate: float, capacity_multiplier: float) -> None:
17+
async def test_available_tokens_never_exceeds_capacity(
18+
rate: float, capacity_multiplier: float
19+
) -> None:
1820
capacity = max(rate * capacity_multiplier, rate)
1921
limiter = AsyncTokenBucketRateLimiter(rate=rate, capacity=capacity)
2022

0 commit comments

Comments
 (0)