Skip to main content

Module api

Module api 

Source

Structs§

AnalysisContext
Optional context information for commit analysis

Functions§

fallback_summary
Provide a deterministic fallback summary if model generation fails
format_types_description
Format commit types from config into a rich description for the prompt Order is preserved from config (first = highest priority)
generate_analysis_with_map_reduce
Generate conventional commit analysis, using map-reduce for large diffs
generate_conventional_analysis
Generate conventional commit analysis using OpenAI-compatible API
generate_fast_commit
Generate a complete commit in a single API call (fast mode).
generate_summary_from_analysis
Create commit summary using a smaller model focused on detail retention
get_client
Get (or create) the shared HTTP client with timeouts from config.
openai_prompt_cache_key
Generate a deterministic cache key for OpenAI prompt-prefix routing.
retry_api_call
Retry an API call with exponential backoff
timed_send
Send an HTTP request with timing instrumentation.