(State(state): State<Arc<ServerState>>)
| 3806 | } |
| 3807 | |
| 3808 | async fn open_models(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> { |
| 3809 | enqueue_tui_request( |
| 3810 | &state, |
| 3811 | "/tui/open-models", |
| 3812 | serde_json::json!({ "command": "model.list" }), |
| 3813 | ) |
| 3814 | .await; |
| 3815 | Ok(Json(true)) |
| 3816 | } |
| 3817 | |
| 3818 | #[derive(Debug, Deserialize)] |
| 3819 | pub struct TuiCommandRequest { |
nothing calls this directly
no test coverage detected