Skip to content

[Copilot BYOM] Allow 'parameterOverrides' in chatLanguageModels.json for API compatibility #291973

Description

I am using the "Bring Your Own Model" feature with chatLanguageModels.json to connect Copilot to an OpenAI-compatible endpoint backed by AWS Bedrock.

The Problem: VS Code sends both temperature and top_p by default. AWS Bedrock (via LiteLLM/other proxies) throws a 400 Error because it forbids sending both parameters simultaneously for Anthropic models.

The Current Workaround: Users are forced to write and run a local Python proxy server just to strip one parameter from the request body.

The Request: Please add an optional completionOptions or parameterOverrides object to the chatLanguageModels.json schema. This would allow users to:

Set static values for strict backends (e.g., "top_p": null).

Example Configuration:

{
    "vendor": "custom",
    "models": [{
        "id": "some-model",
        "parameterOverrides": {
            "top_p": null,   // Explicitly remove/nullify this
            "temperature": 0.5
        }
    }]
}

Metadata

Metadata

Labels

chat-lm-managementLanguage models managementfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions