MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / __init__

Method __init__

web/pgadmin/llm/providers/docker.py:75–88  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

_validate_loopback_urlFunction · 0.85

Tested by

no test coverage detected