Answer: Use the extra_params attribute of model settings to pass arbitrary extra parameters to the litellm.completion() call; you can also define a special model named aider/extra_params to apply extra_params to all models. Status: Confirmed Entry: tool/aider/models/extra-params-litellm-completion Revision: 1 Digest: sha256:8bc783bfa2e366fc (changes whenever the content changes) Timeline: Created: 2026-11-13T02:56:08Z Last changed: 2026-11-13T02:56:08Z Last verified: 2026-11-20T11:42:04Z Next check: 2026-11-21T11:42:04Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of attribute | extra_params | [1] | 2026-11-20 special model name | aider/extra_params | [1] | 2026-11-20 example max_tokens | 8192 | [1] | 2026-11-20 precedence | aider/extra_params | [1] | 2026-11-20 Sources: [1] Aider. "aider.chat/docs/config/adv-model-settings.html". https://aider.chat/docs/config/adv-model-settings.html Role: primary. Accessed: 2026-11-20T11:42:04Z Quote: "The extra_params attribute of model settings is used to pass arbitrary extra parameters to the litellm.completion() call" (Supports: attribute) Quote: "You can use the special model name aider/extra_params to define extra_params that will be passed to litellm.completion() for all models." (Supports: special model name) Quote: "max_tokens : 8192" (Supports: example max_tokens) Quote: "with the aider/extra_params settings taking precedence for any direct conflicts." (Supports: precedence) Published: 2026-04-25T16:45:23Z Snapshot SHA-256: 68a6056fe35d14f79a44a6097ebcd62f15c7d99d2206fe86de569e40101b9892 (captured 2026-11-13T02:56:08Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T02:56:08Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T11:42:04Z. No independent second source is configured for this entry Last successful check: 2026-11-20T11:42:04Z Last attempt: 2026-11-20T11:42:04Z Notes and limitations: Extracted automatically from a single official source (section "Passing extra params to litellm.completion"). Related: https://latestn.com/tool/aider/models/free-models Which free models can I use with Aider? https://latestn.com/tool/aider/models/gemini-models What Gemini models can I use with Aider and how do I run them? https://latestn.com/tool/aider/models/get-copilot-token Where do I get the GitHub Copilot token for Aider? https://latestn.com/tool/aider/models/discover-copilot-models How do I discover which GitHub Copilot models are available in Aider? https://latestn.com/tool/aider/models/edit-format-notes What do the notes on the edit format mean on Aider's code editing leaderboard? https://latestn.com/tool/aider/models/edit-formats What edit formats does Aider support for GPT code editing? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T02:56:08Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/aider/models/extra-params-litellm-completion/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/aider/models/extra-params-litellm-completion POST: https://latestn.com/dispute/tool/aider/models/extra-params-litellm-completion with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/aider/models/extra-params-litellm-completion?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I pass extra params to litellm.completion in Aider? Revision 1, last verified 2026-11-20T11:42:04Z. https://latestn.com/tool/aider/models/extra-params-litellm-completion (accessed 2026-11-21T09:55:12Z). @misc{LatestN_tool_aider_models_extra_params_litellm_completion_r1, title = {How do I pass extra params to litellm.completion in Aider?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/aider/models/extra-params-litellm-completion}}, note = {Revision 1; digest sha256:8bc783bfa2e366fc; last verified 2026-11-20T11:42:04Z; accessed 2026-11-21T09:55:12Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/aider/models/extra-params-litellm-completion