Skip to content

Commit aebc359

Browse files
committed
Fix GoogleLlmClient file upload issue
1 parent d67c656 commit aebc359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patchwork/common/client/llm/google.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def is_model_supported(self, model: str) -> bool:
111111
return model in self.get_models()
112112

113113
def __upload(self, file: Path | NotGiven) -> Part | File | None:
114-
if file is NotGiven:
114+
if isinstance(file, NotGiven):
115115
return None
116116

117117
file_bytes = file.read_bytes()

0 commit comments

Comments
 (0)