powered by
Register a custom model for a provider
register_custom_model(model_name, provider_name, model_config = list())
Invisibly returns TRUE if registration is successful
Character string, unique identifier for the model
Character string, name of the registered provider
List of model-specific configuration parameters
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