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

Function value_to_f32

crates/opencode-session/src/llm.rs:1056–1058  ·  view source on GitHub ↗
(value: &serde_json::Value)

Source from the content-addressed store, hash-verified

1054}
1055
1056fn value_to_f32(value: &serde_json::Value) -> Option<f32> {
1057 value.as_f64().map(|v| v as f32)
1058}
1059
1060fn apply_chat_params_hook_outputs(
1061 max_tokens: &mut Option<u64>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected