MCPcopy Create free account
hub / github.com/enowdev/enowX-Coder / list_models

Function list_models

src-tauri/src/commands/provider.rs:74–83  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    provider_id: String,
)

Source from the content-addressed store, hash-verified

72
73#[tauri::command]
74pub async fn list_models(
75 state: State<'_, AppState>,
76 provider_id: String,
77) -> AppResult<Vec<String>> {
78 let provider =
79 crate::services::provider_service::get_provider_for_chat(state.pool(), Some(&provider_id))
80 .await?;
81
82 crate::services::model_service::list_models(&provider).await
83}
84
85#[tauri::command]
86pub async fn list_provider_models(

Callers

nothing calls this directly

Calls 2

get_provider_for_chatFunction · 0.85
poolMethod · 0.80

Tested by

no test coverage detected