Skip to content

Commit 50c86af

Browse files
authored
Update client.py (#325)
1 parent b094e0f commit 50c86af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def create_file(
7373
request = self._discovery_api.media().upload(body={"file": file}, media_body=media)
7474
result = request.execute()
7575

76-
return self.get_file({"name": result["name"]})
76+
return self.get_file({"name": result["file"]["name"]})
7777

7878

7979
class FileServiceAsyncClient(glm.FileServiceAsyncClient):

0 commit comments

Comments
 (0)