Skip to content

Commit a9b0507

Browse files
committed
re-run ruff (ill add a hook for this later)
1 parent 1e3fa5a commit a9b0507

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎rlm/clients/azure_openai.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ def __init__(
6666
self.model_output_tokens: dict[str, int] = defaultdict(int)
6767
self.model_total_tokens: dict[str, int] = defaultdict(int)
6868

69-
def completion(
70-
self, prompt: str | list[dict[str, Any]], model: str | None = None
71-
) -> str:
69+
def completion(self, prompt: str | list[dict[str, Any]], model: str | None = None) -> str:
7270
if isinstance(prompt, str):
7371
messages = [{"role": "user", "content": prompt}]
7472
elif isinstance(prompt, list) and all(isinstance(item, dict) for item in prompt):
@@ -139,4 +137,3 @@ def get_last_usage(self) -> ModelUsageSummary:
139137
total_input_tokens=self.last_prompt_tokens,
140138
total_output_tokens=self.last_completion_tokens,
141139
)
142-

‎rlm/core/types.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
from types import ModuleType
33
from typing import Any, Literal
44

5-
ClientBackend = Literal["openai", "portkey", "openrouter", "vllm", "litellm", "anthropic", "azure_openai"]
5+
ClientBackend = Literal[
6+
"openai", "portkey", "openrouter", "vllm", "litellm", "anthropic", "azure_openai"
7+
]
68
EnvironmentType = Literal["local", "prime", "modal"]
79

810

0 commit comments

Comments
 (0)