LLMCreationRequest
LLMCreationRequest documentation for Python SDK
Request body for creating a new LLM. An LLM represents a configuration for text generation services.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| validate | object | [optional] | |
| display_name | str | User-facing name of the LLM | |
| description | str | Description of the LLM | [optional] |
| provider_type | LLMProviderType | ||
| endpoint_url | str | API endpoint URL | |
| api_path | str | API path for chat/completions request (defaults to /v1/chat/completions if not provided) | [optional] |
| model_identifier | str | Model identifier | |
| supported_modalities | List[Modality] | Supported content modalities (defaults to TEXT if not provided) | [optional] |
| credentials | EndpointAuthentication | [optional] | |
| labels | Dict[str, str] | User-defined labels for categorization | [optional] |
| version | str | Version information | [optional] |
| monitoring_endpoint | str | Monitoring endpoint URL | [optional] |
| capabilities | LLMCapabilities | ||
| default_sampling_params | LLMSamplingParams | [optional] | |
| max_context_length | int | Maximum context window size in tokens | [optional] |
| client_config | Dict[str, object] | Provider-specific client configuration as flexible JSON structure | [optional] |
| owner_id | str | Optional owner ID. If not provided, derived from the authentication context. Requires CREATE_LLM_ANY permission if specified. | [optional] |
Example
from goodmem_client.models.llm_creation_request import LLMCreationRequest
# TODO update the JSON string below
json = "{}"
# create an instance of LLMCreationRequest from a JSON string
llm_creation_request_instance = LLMCreationRequest.from_json(json)
# print the JSON string representation of the object
print(LLMCreationRequest.to_json())
# convert the object into a dict
llm_creation_request_dict = llm_creation_request_instance.to_dict()
# create an instance of LLMCreationRequest from a dict
llm_creation_request_from_dict = LLMCreationRequest.from_dict(llm_creation_request_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK