MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / get_batch_result

Method get_batch_result

utils/src/llms.py:215–223  ·  view source on GitHub ↗

Get responses from delayed batch calls.

(self)

Source from the content-addressed store, hash-verified

213 return system, message
214
215 def get_batch_result(self):
216 """
217 Get responses from delayed batch calls.
218 """
219 results = run_async(self.oai_batch.run())
220 return [
221 r["choices"][0]["message"]["content"]
222 for r in results.to_dict()["result"].values()
223 ]
224
225 def clear_history(self):
226 self.history = []

Callers

nothing calls this directly

Calls 3

run_asyncFunction · 0.70
runMethod · 0.45
to_dictMethod · 0.45

Tested by

no test coverage detected