list_language_models
¶
list_language_models(
*,
config_overrides: Optional[TranscribeClientConfig] = None,
status_equals: Optional[ModelStatus] = None,
name_contains: Optional[ModelName] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListLanguageModelsResponse
Provides a list of custom language models that match the specified criteria. If no criteria are specified, all custom language models are returned.
To get detailed information about a specific custom language model, use the operation.
Parameters:
-
status_equals(Optional[ModelStatus], default:None) –Returns only custom language models with the specified status. Language models are ordered by creation date, with the newest model first. If you do not include
StatusEquals, all custom language models are returned. -
name_contains(Optional[ModelName], default:None) –Returns only the custom language models that contain the specified string. The search is not case sensitive.
-
next_token(Optional[NextToken], default:None) –If your
ListLanguageModelsrequest returns more results than can be displayed,NextTokenis displayed in the response with an associated string. To get the next page of results, copy this string and repeat your request, includingNextTokenwith the value of the copied string. Repeat as needed to view all your results. -
max_results(Optional[MaxResults], default:None) –The maximum number of custom language models to return in each page of results. If there are fewer results than the value that you specify, only the actual results are returned. If you do not specify a value, a default of 5 is used.
Raises:
-
BadRequestException–Your request didn't pass one or more validation tests. This can occur when the entity you're trying to delete doesn't exist or if it's in a non-terminal state (such as
IN PROGRESS). See the exception message field for more information. -
InternalFailureException–There was an internal error. Check the error message, correct the issue, and try your request again.
-
LimitExceededException–You've either sent too many requests or your input file is too long. Wait before retrying your request, or use a smaller file and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_transcribe/_services/transcribe.py
1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 | |