Skip to main content

llm_kernel/config/
template.rs

1/// Returns a default config template for llm-kernel based products.
2/// Products should override this with their own template.
3pub fn default_config_template(product_name: &str) -> String {
4    format!(
5        r#"[llm]
6provider = "openai"
7model = "gpt-4o"
8api_key_env = "OPENAI_API_KEY"
9temperature = 0.7
10max_tokens = 4096
11
12[output]
13directory = "./{product_name}-output"
14
15[logging]
16level = "info"
17"#,
18    )
19}