mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-21 00:21:27 +00:00
Extract shared provider helpers (parse_error_body, send_and_read_body, extract_system_prompt, ApiMessage) into providers/common.rs, eliminating duplicated logic across all three providers. Simplify StepResult and GenerateResult to derive fields from the embedded Response rather than storing redundant copies. Remove stringly-typed ToolCall.r#type and ResponseFormat.r#type in favor of proper enums. Remove unused dependencies (hyper, clap, rayon, base64, etc.), use LazyLock for the model catalog, and fix miscellaneous idiom issues (unnecessary Vec collects, inconsistent error Display, module_name_repetitions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| unified-llm | ||