Skip to main content

normalize_model_id

Function normalize_model_id 

Source
pub fn normalize_model_id(model: &str, provider: &str) -> String
Expand description

Convert a model string to models.dev convention format.

ยงExample

use vtcode_exec_events::trace::normalize_model_id;

assert_eq!(
    normalize_model_id("claude-3-opus-20240229", "anthropic"),
    "anthropic/claude-3-opus-20240229"
);