DropModelResponse
Confirms that a model drop request completed.
For the list of response object types, see Response Objects.
Use DropModelResponse to inspect the dropped model name and the confirmation message returned by the SDK.
Attributes
| Attribute | Type | Description |
|---|---|---|
dropped |
str or None |
Name of the dropped model, when the service returns it. |
message |
str or None |
Confirmation or status message returned by the service. |
Methods
| Method | Return Type | Description |
|---|---|---|
model_dump() |
dict[str, Any] |
Returns a Pydantic dictionary representation of the object. |
model_dump_json() |
str |
Returns a Pydantic JSON string representation of the object. |
to_dict() |
dict[str, Any] |
Returns a dictionary representation compatible with earlier SDK response handling. |
to_json() |
str |
Returns a JSON string representation compatible with earlier SDK response handling. |
to_str() |
str |
Returns a readable string representation compatible with earlier SDK response handling. |
Iterate Attributes
Use the response serialization helper to iterate every public attribute.
response = client.drop_model(model_name="reranker_model")
payload = response.to_dict()
for attribute, value in payload.items():
print(attribute, value)
Sample Response
{
"dropped": "reranker_model",
"message": "Model dropped."
}
Returned By
Returned by: drop_model().