Skip to content

Preset Utils

Utility helpers for model preset parsing.

parse_model_metadata(s)

Parse model metadata from a model ID string.

This parser supports: 1. Standard model IDs, for example prosa/v2. 2. URL-style model IDs, for example qwen/https://host/v1:Qwen/Qwen3-ASR-1.7B.

Parameters:

Name Type Description Default
s str

The metadata string to parse.

required

Returns:

Type Description
dict[str, str | None]

dict[str, str | None]: A dictionary containing provider, path, and name.