Set the request model, replacing a malformed non-object body.
(self, model: str)
| 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.""" |
no outgoing calls