MCPcopy
hub / github.com/gpustack/gpustack / update

Method update

gpustack/client/generated_model_file_client.py:331–338  ·  view source on GitHub ↗
(self, id: int, model_update: ModelFileUpdate)

Source from the content-addressed store, hash-verified

329 return ModelFilePublic.model_validate(response.json())
330
331 def update(self, id: int, model_update: ModelFileUpdate):
332 response = self._client.get_httpx_client().put(
333 f"{self._url}/{id}",
334 content=model_update.model_dump_json(),
335 headers={"Content-Type": "application/json"},
336 )
337 raise_if_response_error(response)
338 return ModelFilePublic.model_validate(response.json())
339
340 def delete(self, id: int):
341 response = self._client.get_httpx_client().delete(f"{self._url}/{id}")

Callers

nothing calls this directly

Calls 4

raise_if_response_errorFunction · 0.90
jsonMethod · 0.80
putMethod · 0.45
get_httpx_clientMethod · 0.45

Tested by

no test coverage detected