MCPcopy Create free account
hub / github.com/InternScience/SciReason / wait

Method wait

opencompass/models/base_api.py:153–158  ·  view source on GitHub ↗

Wait till the next query can be sent. Applicable in both single-thread and multi-thread environments.

(self)

Source from the content-addressed store, hash-verified

151 return english_count + chinese_count
152
153 def wait(self):
154 """Wait till the next query can be sent.
155
156 Applicable in both single-thread and multi-thread environments.
157 """
158 return self.token_bucket.get_token()
159
160 def to(self, device):
161 pass

Callers 15

acquireMethod · 0.95
_launch_wo_debugMethod · 0.45
_launchMethod · 0.45
_openai_functionMethod · 0.45
save_resultsMethod · 0.45
_generateMethod · 0.45
_generateMethod · 0.45
_generateMethod · 0.45
_generateMethod · 0.45
_generateMethod · 0.45
_generateMethod · 0.45
_generateMethod · 0.45

Calls 1

get_tokenMethod · 0.80

Tested by

no test coverage detected