MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / __init__

Method __init__

mini_agent/llm/base.py:17–38  ·  view source on GitHub ↗

Initialize the LLM client. Args: api_key: API key for authentication api_base: Base URL for the API model: Model name to use retry_config: Optional retry configuration

(
        self,
        api_key: str,
        api_base: str,
        model: str,
        retry_config: RetryConfig | None = None,
    )

Source from the content-addressed store, hash-verified

15 """
16
17 def __init__(
18 self,
19 api_key: str,
20 api_base: str,
21 model: str,
22 retry_config: RetryConfig | None = None,
23 ):
24 """Initialize the LLM client.
25
26 Args:
27 api_key: API key for authentication
28 api_base: Base URL for the API
29 model: Model name to use
30 retry_config: Optional retry configuration
31 """
32 self.api_key = api_key
33 self.api_base = api_base
34 self.model = model
35 self.retry_config = retry_config or RetryConfig()
36
37 # Callback for tracking retry count
38 self.retry_callback = None
39
40 @abstractmethod
41 async def generate(

Callers

nothing calls this directly

Calls 1

RetryConfigClass · 0.50

Tested by

no test coverage detected