GoodMem
ReferenceClient SDKsPython SDKRequests

LLMCreationRequest

LLMCreationRequest documentation for Python SDK

Request body for creating a new LLM. An LLM represents a configuration for text generation services.

Properties

NameTypeDescriptionNotes
validateobject[optional]
display_namestrUser-facing name of the LLM
descriptionstrDescription of the LLM[optional]
provider_typeLLMProviderType
endpoint_urlstrAPI endpoint URL
api_pathstrAPI path for chat/completions request (defaults to /v1/chat/completions if not provided)[optional]
model_identifierstrModel identifier
supported_modalitiesList[Modality]Supported content modalities (defaults to TEXT if not provided)[optional]
credentialsEndpointAuthentication[optional]
labelsDict[str, str]User-defined labels for categorization[optional]
versionstrVersion information[optional]
monitoring_endpointstrMonitoring endpoint URL[optional]
capabilitiesLLMCapabilities
default_sampling_paramsLLMSamplingParams[optional]
max_context_lengthintMaximum context window size in tokens[optional]
client_configDict[str, object]Provider-specific client configuration as flexible JSON structure[optional]
owner_idstrOptional 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

On this page