Skip to content

Unable to remove "stop" parameter from autocomplete request for gpt-5-nano #8184

@sbaechler

Description

@sbaechler

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: 1.3.16
- IDE version: VSCode recent
- Model: gpt-5-nano
- config:
  
- name: GPT 5 nano
      model: gpt-5-nano
      <<: *azure
      roles:
          - autocomplete
          - apply
      defaultCompletionOptions:
          contextLength: 272000
          temperature: 1
          stop: []

Description

GPT-5-nano does not support the stop parameter at all. It returns a 400 response. It looks like the parameter is sent even if I set it to an empty array.

I am using the Azure API with API version '2025-04-01-preview'.

To reproduce

  1. Configure gpt-5-nano as autocomplete model.
  2. Select it in the config
  3. Start coding.

Log output

`{ "error": { "message": "Unsupported parameter: 'stop' is not supported with this model.", "type": "invalid_request_error", "param": "stop", "code": "unsupported_parameter" } }`

Metadata

Metadata

Labels

area:autocompleteRelates to the auto complete featureide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:macHappening specifically on Mac

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions