Skip to main content

openai_prompt_cache_key

Function openai_prompt_cache_key 

Source
pub fn openai_prompt_cache_key(
    config: &CommitConfig,
    model_name: &str,
    prompt_family: &str,
    prompt_variant: &str,
    system_prompt: &str,
) -> Option<String>
Expand description

Generate a deterministic cache key for OpenAI prompt-prefix routing.