Skip to content

Commit 3f426d5

Browse files
committed
API Update
- gpt-5.1-codex-max - reasoning_effort : `xhigh` - memory_limit param for container
1 parent 1c2e678 commit 3f426d5

10 files changed

Lines changed: 24 additions & 7 deletions

File tree

Docs/New-Container.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ New-Container
1818
[-ExpiresAfterMinutes <UInt32>]
1919
[-ExpiresAfterAnchor <String>]
2020
[-FileId <String[]>]
21+
[-MemoryLimit <String>]
2122
[-TimeoutSec <Int32>]
2223
[-MaxRetryCount <Int32>]
2324
[-ApiBase <Uri>]
@@ -83,6 +84,15 @@ Required: False
8384
Position: Named
8485
```
8586
87+
### -MemoryLimit
88+
Optional memory limit for the container. Defaults to `1g`. Supported values are `1g`, `4g`, `16g`, and `64g`.
89+
```yaml
90+
Type: String
91+
Aliases: memory_limit
92+
Required: False
93+
Position: Named
94+
```
95+
8696
### -TimeoutSec
8797
Specifies how long the request can be pending before it times out.
8898
The default value is `0` (infinite).

Docs/Request-ChatCompletion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ Default value: medium
430430
```
431431

432432
### -ReasoningEffort
433-
Constrains effort on reasoning for reasoning models. Currently supported values are `none`, `low`, `medium`, and `high`.
433+
Constrains effort on reasoning for reasoning models. Supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
434434
Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
435435

436436
```yaml

Docs/Request-Response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ Default value: medium
898898
```
899899

900900
### -ReasoningEffort
901-
Constrains effort on reasoning for reasoning models. Currently supported values are `none`, `low`, `medium`, and `high`.
901+
Constrains effort on reasoning for reasoning models. Supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`.
902902

903903
```yaml
904904
Type: String

Public/Assistants/New-Assistant.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function New-Assistant {
4747

4848
[Parameter()]
4949
[Alias('reasoning_effort')]
50-
[Completions('none', 'minimal', 'low', 'medium', 'high')]
50+
[Completions('none', 'minimal', 'low', 'medium', 'high', 'xhigh')]
5151
[string]$ReasoningEffort,
5252

5353
[Parameter()]

Public/Assistants/Set-Assistant.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Set-Assistant {
4848

4949
[Parameter()]
5050
[Alias('reasoning_effort')]
51-
[Completions('none', 'minimal', 'low', 'medium', 'high')]
51+
[Completions('none', 'minimal', 'low', 'medium', 'high', 'xhigh')]
5252
[string]$ReasoningEffort,
5353

5454
[Parameter()]

Public/Chat/Request-ChatCompletion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function Request-ChatCompletion {
167167

168168
[Parameter()]
169169
[Alias('reasoning_effort')]
170-
[Completions('none', 'minimal', 'low', 'medium', 'high')]
170+
[Completions('none', 'minimal', 'low', 'medium', 'high', 'xhigh')]
171171
[string]$ReasoningEffort,
172172

173173
[Parameter()]

Public/Containers/New-Container.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ function New-Container {
1616
[Alias('file_ids')]
1717
[string[]]$FileId,
1818

19+
[Parameter()]
20+
[Completions('1g', '4g', '16g', '64g')]
21+
[Alias('memory_limit')]
22+
[string]$MemoryLimit,
23+
1924
[Parameter()]
2025
[int]$TimeoutSec = 0,
2126

Public/Responses/Request-Response.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ function Request-Response {
3434
'gpt-5.1-chat-latest',
3535
'gpt-5.1-codex',
3636
'gpt-5.1-codex-mini',
37+
'gpt-5.1-codex-max',
3738
'o1',
3839
'o1-pro',
3940
'o3',
@@ -399,7 +400,7 @@ function Request-Response {
399400

400401
#region Reasoning
401402
[Parameter()]
402-
[Completions('none', 'minimal', 'low', 'medium', 'high')]
403+
[Completions('none', 'minimal', 'low', 'medium', 'high', 'xhigh')]
403404
[string]$ReasoningEffort,
404405

405406
[Parameter()]

Public/Runs/Start-ThreadRun.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Start-ThreadRun {
4646

4747
[Parameter()]
4848
[Alias('reasoning_effort')]
49-
[Completions('none', 'minimal', 'low', 'medium', 'high')]
49+
[Completions('none', 'minimal', 'low', 'medium', 'high', 'xhigh')]
5050
[string]$ReasoningEffort,
5151

5252
[Parameter(ParameterSetName = 'Run_ThreadId')]

Tests/Containers/New-Container.tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Describe 'New-Container' {
4848
ExpiresAfterMinutes = 120
4949
ExpiresAfterAnchor = 'last_active_at'
5050
FileId = 'file-abc123', 'file-abc456'
51+
MemoryLimit = '4g'
5152
}
5253
{ $script:Result = New-Container @Params -ea Stop } | Should -Not -Throw
5354
Should -Invoke -CommandName Invoke-OpenAIAPIRequest -ModuleName $script:ModuleName -Times 1 -Exactly

0 commit comments

Comments
 (0)