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

Method batch_run

src/model.py:85–92  ·  view source on GitHub ↗
(self, file_id)

Source from the content-addressed store, hash-verified

83 return outputs
84
85 def batch_run(self, file_id):
86 response = self.client.batches.create(
87 input_file_id=file_id,
88 endpoint="/v1/chat/completions",
89 completion_window="24h"
90 )
91 print(response)
92 return response
93
94 def batch_status(self, batch_id):
95 response = self.client.batches.retrieve(batch_id)

Callers 1

batch_runFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected