Skip to content

Commit 800d375

Browse files
committed
lint
1 parent b58932a commit 800d375

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tlm/config/provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class APICredentials(BaseModel):
1414
api_base: str | None = None
1515
api_version: str | None = None
1616

17+
1718
OPENAI_PROVIDER = "openai"
1819
BEDROCK_PROVIDER = "bedrock"
1920
GOOGLE_PROVIDER = "google"

tlm/utils/chat_completion_validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
}
6666
)
6767

68+
6869
def _resolve_valid_chat_completion_params(provider: str | None) -> FrozenSet[str]:
6970
if provider == OPENAI_PROVIDER:
7071
return VALID_OPENAI_CHAT_COMPLETION_PARAMS
@@ -94,6 +95,5 @@ def _validate_chat_completion_params(params: CompletionParams, provider: str | N
9495
invalid_keys = sorted(set(params.keys()) - valid_params)
9596
if invalid_keys:
9697
raise ValueError(
97-
f"Unsupported chat completion parameter(s) for provider {provider}: "
98-
+ ", ".join(invalid_keys)
98+
f"Unsupported chat completion parameter(s) for provider {provider}: " + ", ".join(invalid_keys)
9999
)

0 commit comments

Comments
 (0)