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.
|
||
|---|---|---|
| .. | ||
| assets | ||
| auth | ||
| core | ||
| loggers | ||
| models | ||
| plugins | ||
| requirements | ||
| routes | ||
| state | ||
| storage | ||
| tests | ||
| utils | ||
| __init__.py | ||
| _platform_compat.py | ||
| colab.py | ||
| main.py | ||
| run.py | ||
| startup_banner.py | ||