microsoft / microsoft/foundry-dev-tools

gpt-5-mini do not work Parameter max_token changed

Open
#338 3 comments 0 reactions 1 assignee View on GitHub

@MuyangAmigo is already working on this.

Since Jan 27, 2026.

feature request
Dominant language
JavaScript
Stars
2.1k
Forks
260
Avg merge
42m
Merged PRs (30d)
29

Description

Type: Bug

I can´t use an gpt5 Model with the AI Toolkit because openAI change the maxt_tokens Parameter to max_completion_tokens.
The UI do not allow to change the Parameter.

[error] Unable to call the gpt-5-mini inference endpoint due to 400. Please check if the input or configuration is correct. 400 Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.

I tryed also to use the Schema Option. With the same Result.

Extension version: 0.28.1
VS Code version: Code 1.108.0 (94e8ae2b28cb5cc932b86e1070569c4463565c37, 2026-01-08T13:53:10.781Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) Ultra 7 155U (14 x 2688)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.52GB (4.88GB free)
Process Argv --crash-reporter-id 6488783b-8789-4e30-af60-1c3330aea77b
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31436602
aj953862:31281341
6abeh943:31336334
cloudbuttont:31379625
3efgi100_wstrepl:31403338
use-responses-api:31390855
ddidtcf:31399634
je187915:31401257
ec5jj548:31422691
cmp-ext-treat:31426748
cp_cls_c_966_ss:31442353
c0683394:31419495
ge8j1254_inline_auto_hint_haiku:31431912
nes-autoexp-10:31439333
a5gib710:31434435
5j92g670_sonnet:31434465
default_control:31445373
rename_enabled:31436409
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_t:31432745
406hc587_ask_agent:31428393
cp_cls_c_1081:31443829
copilot-nes-oct-trt:31432596
nes-jump-ctrl:31446076
nes-slash-models-on:31441832
nes-set-to-on:31441941
a43f0574a:31442826
ts_provider_enabled:31446104

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.