MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / open_models

Function open_models

crates/opencode-server/src/routes.rs:3808–3816  ·  view source on GitHub ↗
(State(state): State<Arc<ServerState>>)

Source from the content-addressed store, hash-verified

3806}
3807
3808async 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)]
3819pub struct TuiCommandRequest {

Callers

nothing calls this directly

Calls 1

enqueue_tui_requestFunction · 0.85

Tested by

no test coverage detected