Initialize the Docker Model Runner client. Args: api_url: The Docker Model Runner API URL (default: http://localhost:12434). model: Optional model name. Defaults to ai/qwen3-coder.
(
self, api_url: Optional[str] = None, model: Optional[str] = None
)
| 73 | """ |
| 74 | |
| 75 | def __init__( |
| 76 | self, api_url: Optional[str] = None, model: Optional[str] = None |
| 77 | ): |
| 78 | """ |
| 79 | Initialize the Docker Model Runner client. |
| 80 | |
| 81 | Args: |
| 82 | api_url: The Docker Model Runner API URL |
| 83 | (default: http://localhost:12434). |
| 84 | model: Optional model name. Defaults to ai/qwen3-coder. |
| 85 | """ |
| 86 | self._api_url = (api_url or DEFAULT_API_URL).rstrip('/') |
| 87 | _validate_loopback_url(self._api_url) |
| 88 | self._model = model or DEFAULT_MODEL |
| 89 | |
| 90 | @property |
| 91 | def provider_name(self) -> str: |
nothing calls this directly
no test coverage detected