Client is a thin REST wrapper. It maps each LocalAIClient method to the matching admin endpoint. Errors from non-2xx responses include the body for the MCP layer to surface verbatim to the LLM.
| 28 | // matching admin endpoint. Errors from non-2xx responses include the body for |
| 29 | // the MCP layer to surface verbatim to the LLM. |
| 30 | type Client struct { |
| 31 | BaseURL string |
| 32 | APIKey string |
| 33 | |
| 34 | HTTPClient *http.Client |
| 35 | } |
| 36 | |
| 37 | // New returns a Client targeting baseURL with an optional bearer token. |
| 38 | func New(baseURL, apiKey string) *Client { |
nothing calls this directly
no outgoing calls
no test coverage detected