MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / set_model

Method set_model

switchyard_rust/core.py:104–108  ·  view source on GitHub ↗

Set the request model, replacing a malformed non-object body.

(self, model: str)

Source from the content-addressed store, hash-verified

102 )
103
104 def set_model(self, model: str) -> None:
105 """Set the request model, replacing a malformed non-object body."""
106 if not isinstance(self._body, dict):
107 self._body = {}
108 self._body["model"] = model
109
110 def replace_body(self, body: object) -> None:
111 """Replace the body without changing its wire format."""

Callers 7

callMethod · 0.45
processMethod · 0.45
processMethod · 0.45
processMethod · 0.45
test_body_mutationMethod · 0.45

Calls

no outgoing calls