Skip to main content

create_model

Function create_model 

Source
pub async fn create_model(
    environment: &Environment,
    app_id: &str,
    app_secret: &str,
    access_token: &str,
    params: CreateModelParams<'_>,
) -> Result<OndeModel, GresiqError>
Expand description

Register a new model into the catalog, private to the calling user.

Typical use: right after uploading a fine-tuned GGUF to Hugging Face, so it can then be targeted by assign_model.

POST /v1/client/gresiq/models — body: { "gresiq_model": { ... } }