(
state: State<'_, AppState>,
provider_id: String,
)
| 72 | |
| 73 | #[tauri::command] |
| 74 | pub 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] |
| 86 | pub async fn list_provider_models( |
nothing calls this directly
no test coverage detected