Skip to content

Commit 10fe3d5

Browse files
authored
Fix type casting for model configuration
Signed-off-by: Adam Poulemanos <89049923+bashandbone@users.noreply.github.com>
1 parent 43e7321 commit 10fe3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codeweaver/providers/config/categories/reranking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _config_factory[T: RerankingConfigT](data: dict[str, Any], config_class: typ
5555
)
5656
)
5757
if config_data.get("provider") == Provider.BEDROCK and data.get("model_arn"):
58-
config_data["model"] = cast("dict[str, Any]", config_data.get("model", {})) | {
58+
config_data["model"] = cast(dict[str, Any], config_data.get("model", {})) | {
5959
"model_arn": data["model_arn"],
6060
}
6161
if (

0 commit comments

Comments
 (0)