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

Method __init__

opencompass/models/minimax_api.py:203–223  ·  view source on GitHub ↗
(
        self,
        path: str,
        key: str,
        url: str,
        query_per_second: int = 2,
        max_seq_len: int = 2048,
        meta_template: Optional[Dict] = None,
        retry: int = 2,
    )

Source from the content-addressed store, hash-verified

201 """
202
203 def __init__(
204 self,
205 path: str,
206 key: str,
207 url: str,
208 query_per_second: int = 2,
209 max_seq_len: int = 2048,
210 meta_template: Optional[Dict] = None,
211 retry: int = 2,
212 ):
213 super().__init__(path=path,
214 max_seq_len=max_seq_len,
215 query_per_second=query_per_second,
216 meta_template=meta_template,
217 retry=retry)
218 self.headers = {
219 'Content-Type': 'application/json',
220 'Authorization': 'Bearer ' + key,
221 }
222 self.url = url
223 self.model = path
224
225 def generate(
226 self,

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected