Comments-only pass. Drops verbose docstrings to single-line form,
removes repetitive "null = unset" / "Local only" tails (already
encoded by the type signature and capability map), keeps every
authoritative source URL but cuts surrounding prose, and removes
fully-redundant per-field comments where the field name already
says what the comment says.
Touches:
- types/runtime.ts (InferenceParams)
- types/api.ts (OpenAIChatCompletionsRequest wire shape)
- provider-capabilities.ts (ProviderCapabilities interface + bucket
inline blocks + per-model resolvers + reasoning helpers)
- api/chat-adapter.ts (external + local forwarding stanzas)
- backend models/inference.py (Field descriptions)
- backend llama_cpp.py (3rd payload-builder inline comments)
- backend routes/inference.py (_build_passthrough_payload)
- backend external_provider.py (4.7 sampling-removed header,
_is_openai_family_cloud docstring)
Net 508 lines deleted across 8 files; 65/65 sampling_params_routing
tests still pass; frontend tsc clean.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _html_to_md.py | ||
| anthropic_compat.py | ||
| audio_codecs.py | ||
| chat_template_helpers.py | ||
| defaults.py | ||
| external_provider.py | ||
| inference.py | ||
| key_exchange.py | ||
| llama_cpp.py | ||
| llama_server_args.py | ||
| mlx_inference.py | ||
| orchestrator.py | ||
| pricing.py | ||
| providers.py | ||
| safetensors_agentic.py | ||
| tool_call_parser.py | ||
| tools.py | ||
| worker.py | ||