MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / upload_file

Method upload_file

src/model.py:46–52  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

44 self.model = model
45
46 def upload_file(self, filename):
47 response = self.client.files.create(
48 file=open(filename, "rb"),
49 purpose="batch"
50 )
51 print(response)
52 return response
53
54 def delete_file(self, file_id):
55 response = self.client.files.delete(file_id)

Callers 1

upload_fileFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected