We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b094e0f commit 50c86afCopy full SHA for 50c86af
google/generativeai/client.py
@@ -73,7 +73,7 @@ def create_file(
73
request = self._discovery_api.media().upload(body={"file": file}, media_body=media)
74
result = request.execute()
75
76
- return self.get_file({"name": result["name"]})
+ return self.get_file({"name": result["file"]["name"]})
77
78
79
class FileServiceAsyncClient(glm.FileServiceAsyncClient):
0 commit comments