AiViewControllerGetModels - метод
Get available models.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.1+2efecbe35c10dec386bb05925f2876c4acbb708d
[HttpGetAttribute("models")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<List<AiModel>>> GetModels(
[FromQueryAttribute] string? modelID = null,
[FromQueryAttribute] string? modelName = null,
[FromQueryAttribute] bool force = false,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("models")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetModels (
<FromQueryAttribute> Optional modelID As String = Nothing,
<FromQueryAttribute> Optional modelName As String = Nothing,
<FromQueryAttribute> Optional force As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of List(Of AiModel)))
public:
[HttpGetAttribute(L"models")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<List<AiModel^>^>^>^ GetModels(
[FromQueryAttribute] String^ modelID = nullptr,
[FromQueryAttribute] String^ modelName = nullptr,
[FromQueryAttribute] bool force = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("models")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetModels :
[<FromQueryAttribute>] ?modelID : string *
[<FromQueryAttribute>] ?modelName : string *
[<FromQueryAttribute>] ?force : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _modelID = defaultArg modelID null
let _modelName = defaultArg modelName null
let _force = defaultArg force false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<List<AiModel>>>
- modelID String (Optional)
- The ID of the model to search for a specific model.
- modelName String (Optional)
- The name of the model to filter by name.
- force Boolean (Optional)
- The forced data update flag.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskActionResultListAiModelList of AI models.