Skip to content

Commit 7b71e08

Browse files
committed
style: format openai embedding normalization
1 parent 9bd820b commit 7b71e08

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

astrbot/core/provider/sources/openai_embedding_source.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ def _normalize_embedding_response(response: Any) -> list[list[float]]:
8383
)
8484
if not isinstance(embedding, list):
8585
raise TypeError(
86-
"Unexpected embedding item type: "
87-
f"{type(item).__name__}"
86+
f"Unexpected embedding item type: {type(item).__name__}"
8887
)
8988
vectors.append([float(value) for value in embedding])
9089

0 commit comments

Comments
 (0)