MCPcopy Create free account
hub / github.com/Roy3838/Observer / __init__

Method __init__

api/api_handlers.py:62–68  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

60class BaseAPIHandler:
61 """Base class for asynchronous API handlers."""
62 def __init__(self, name):
63 self.name = name
64 self.models = [] # List of supported models { "name": "model-id", "parameters": "optional", ... }
65 API_HANDLERS[name] = self
66 logger.info("Registered API handler: '%s'", name)
67 # Optional: Create a shared httpx client if needed across handlers (managing lifecycle is key)
68 # self.http_client = httpx.AsyncClient(timeout=90.0) # Example
69
70 def get_models(self):
71 """Return the list of models supported by this handler."""

Callers

nothing calls this directly

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected