code-intelligence

Custom Request Parameters

The Custom params... dialog lets you attach provider-specific JSON to an API connection.

This is useful when a provider supports request fields that do not have a dedicated setting in the Eclipse preferences UI. For Ollama, this includes parameters such as num_ctx, top_k, and top_p.

Where to find it

Open Window -> Preferences -> Code Intelligence and click Custom params....

Screenshot: location of the "Custom params..." button in the settings dialog.

The dialog stores JSON per:

The JSON format depends on the API you use. The plugin does not translate parameter names between providers, so the payload must match the request format expected by that provider.

Currently, the dialog is available for:

How parameters are applied

Custom params are used as a request preset for the selected connection and request type.

After loading that preset, the plugin adds the required request fields for the current operation, such as the model name, messages, and streaming mode. Some additional fields are only filled in when they are missing.

In practice, that means:

Ollama

For Ollama, tuning parameters such as context and sampling settings belong inside the options object.

Increase the context window

Use this to override Ollama’s default context size:

{
  "options": {
    "num_ctx": 16000
  }
}

Adjust sampling

Example:

{
  "options": {
    "top_k": 20,
    "top_p": 0.9
  }
}

Combined example

{
  "options": {
    "num_ctx": 16000,
    "top_k": 20,
    "top_p": 0.9
  }
}

If you want the same settings for both chat and completion requests, configure both CHAT and INSTRUCT.

For the full list of Ollama request parameters, see the official Ollama API documentation.

Tips