dsh-llm-sampling-params: Injecting Sampling Parameters by Model Alias into an OpenAI-Compatible Gateway

By default, dsh only sends `temperature`, `maxTokens`, and `stop` to the LLM gateway. The `dsh-llm-sampling-params` plugin, maintained by devhang, wraps `fetch` at the transport layer and, for `/v1/chat/completions` requests, looks up the `body.model` alias against the `sampling-params.models` table to inject seven sampling parameters including `top_p`, `top_k`, `min_p`, and `repeat_penalty`. This makes it easy to switch between creative and coding roles using multiple aliases under the same model weights. Supports dsh 0.1.x/0.2.x and is compatible with llama.cpp, SGLang, and vLLM. Configuration is written in `cordis.patch.yml` or `settings.yaml`, and can be verified via `DSH_SAMPLING_DEBUG` or the `/slots` command. MIT licensed.

Read More