LLMUpdateRequest
LLMUpdateRequest documentation for Python SDK
Request body for updating an existing LLM. All fields are optional - only specified fields will be updated.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| validate | object | [optional] | |
| display_name | str | Update display name | [optional] |
| description | str | Update description | [optional] |
| endpoint_url | str | Update endpoint URL (must be valid HTTP/HTTPS URL) | [optional] |
| api_path | str | Update API path | [optional] |
| model_identifier | str | Update model identifier (cannot be empty) | [optional] |
| supported_modalities | List[Modality] | Update supported modalities (if array contains ≥1 elements, replaces stored set; if empty or omitted, no change) | [optional] |
| credentials | EndpointAuthentication | [optional] | |
| version | str | Update version information | [optional] |
| monitoring_endpoint | str | Update monitoring endpoint URL | [optional] |
| capabilities | LLMCapabilities | [optional] | |
| default_sampling_params | LLMSamplingParams | [optional] | |
| max_context_length | int | Update maximum context window size in tokens | [optional] |
| client_config | Dict[str, object] | Update provider-specific client configuration (replaces entire config; no merging) | [optional] |
| replace_labels | Dict[str, str] | Replace all existing labels with this set. Empty map clears all labels. Cannot be used with mergeLabels. | [optional] |
| merge_labels | Dict[str, str] | Merge with existing labels: upserts with overwrite. Labels not mentioned are preserved. Cannot be used with replaceLabels. | [optional] |
Example
from goodmem_client.models.llm_update_request import LLMUpdateRequest
# TODO update the JSON string below
json = "{}"
# create an instance of LLMUpdateRequest from a JSON string
llm_update_request_instance = LLMUpdateRequest.from_json(json)
# print the JSON string representation of the object
print(LLMUpdateRequest.to_json())
# convert the object into a dict
llm_update_request_dict = llm_update_request_instance.to_dict()
# create an instance of LLMUpdateRequest from a dict
llm_update_request_from_dict = LLMUpdateRequest.from_dict(llm_update_request_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK