Learn R Programming

mLLMCelltype (version 1.3.2)

register_custom_model: Register a custom model for a provider

Description

Register a custom model for a provider

Usage

register_custom_model(model_name, provider_name, model_config = list())

Value

Invisibly returns TRUE if registration is successful

Arguments

model_name

Character string, unique identifier for the model

provider_name

Character string, name of the registered provider

model_config

List of model-specific configuration parameters

Examples

Run this code
if (FALSE) {
register_custom_model(
  model_name = "my_model",
  provider_name = "my_provider",
  model_config = list(
    temperature = 0.7,
    max_tokens = 2000
  )
)
}

Run the code above in your browser using DataLab