aipack 0.8.21

Command Agent runner to accelerate production coding with genai.
1
2
3
4
5
6
7
8
9
use crate::support::text::format_f64;

pub fn ui_fmt_cost(cost: Option<f64>) -> String {
	if let Some(cost) = cost {
		format!("${}", format_f64(cost))
	} else {
		"-".to_string()
	}
}