Skip to content

Commit 06e6833

Browse files
committed
v4.26.0
1 parent 74f7678 commit 06e6833

13 files changed

Lines changed: 6278 additions & 2214 deletions

CHANGELOG.ja.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
# 変更履歴
2+
### 4.26.0
3+
- Responses API用の新しい組み込みツール(Remote MCP、Code Interpreter、Image Generationなど)を追加しました
4+
- Responseオブジェクトの一覧表示を最適化しました
5+
- Containers用の新しい関数を追加しました
6+
+ [New-Container](/Docs/New-Container.md)
7+
+ [Get-Container](/Docs/Get-Container.md)
8+
+ [Remove-Container](/Docs/Remove-Container.md)
9+
+ [Add-ContainerFile](/Docs/Add-ContainerFile.md)
10+
+ [Get-ContainerFile](/Docs/Get-ContainerFile.md)
11+
+ [Get-ContainerFileContent](/Docs/Get-ContainerFileContent.md)
12+
+ [Remove-ContainerFile](/Docs/Remove-ContainerFile.md)
13+
214
### 4.25.0
315
- `codex-mini-latest`モデルを追加しました
416
- 廃止予定モデルのリストを更新しました

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
# Changelog
2+
### 4.26.0
3+
- Add new built-in tools for Responses API, such as Remote MCP, Code Interpreter, and Image Generation.
4+
- Optimize list view of Response object.
5+
- Add new functions for Containers.
6+
+ [New-Container](/Docs/New-Container.md)
7+
+ [Get-Container](/Docs/Get-Container.md)
8+
+ [Remove-Container](/Docs/Remove-Container.md)
9+
+ [Add-ContainerFile](/Docs/Add-ContainerFile.md)
10+
+ [Get-ContainerFile](/Docs/Get-ContainerFile.md)
11+
+ [Get-ContainerFileContent](/Docs/Get-ContainerFileContent.md)
12+
+ [Remove-ContainerFile](/Docs/Remove-ContainerFile.md)
13+
214
### 4.25.0
315
- Add `codex-mini-latest` model.
416
- Update deprecation models list.

Docs/Add-ContainerFile.md

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
---
2+
external help file: PSOpenAI-help.xml
3+
Module Name: PSOpenAI
4+
online version: https://github.com/mkht/PSOpenAI/blob/main/Docs/Add-ContainerFile.md
5+
schema: 2.0.0
6+
---
7+
8+
# Add-ContainerFile
9+
10+
## SYNOPSIS
11+
Copy files to a container.
12+
13+
## SYNTAX
14+
15+
```
16+
Add-ContainerFile
17+
[-ContainerId] <String>
18+
[-File] <Object[]>
19+
[-TimeoutSec <Int32>]
20+
[-MaxRetryCount <Int32>]
21+
[-ApiBase <Uri>]
22+
[-ApiKey <SecureString>]
23+
[-Organization <String>]
24+
[<CommonParameters>]
25+
```
26+
27+
## DESCRIPTION
28+
Attach one or more files to a container.
29+
You can send either local file , or uploaded files with file ID.
30+
31+
## EXAMPLES
32+
33+
### Example 1
34+
```powershell
35+
PS C:\> Add-ContainerFile -ContainerId 'cont_abc123' -File 'file-abc123'
36+
```
37+
Attach a file with ID `file-abc123` to the container with ID `cont_abc123`.
38+
39+
### Example 2
40+
```powershell
41+
PS C:\> Add-ContainerFile -ContainerId 'cont_abc123' -File 'C:\data\sample.pdf'
42+
```
43+
Upload and attach a local file to the container with ID `cont_abc123`.
44+
45+
## PARAMETERS
46+
47+
### -ContainerId
48+
The ID of the container to which the file(s) will be attached.
49+
50+
```yaml
51+
Type: String
52+
Aliases: Container, container_id
53+
Required: True
54+
Position: 0
55+
Accept pipeline input: True (ByPropertyName, ByValue)
56+
```
57+
58+
### -File
59+
The file(s) to attach.
60+
Accepts file IDs (as strings), file paths, or FileInfo objects.
61+
62+
```yaml
63+
Type: Object[]
64+
Aliases: FileId
65+
Required: True
66+
Position: 1
67+
Accept pipeline input: True (ByPropertyName, ByValue)
68+
```
69+
70+
### -TimeoutSec
71+
Specifies how long the request can be pending before it times out.
72+
The default value is `0` (infinite).
73+
74+
```yaml
75+
Type: Int32
76+
Required: False
77+
Position: Named
78+
Default value: 0
79+
```
80+
81+
### -MaxRetryCount
82+
Number between `0` and `100`.
83+
Specifies the maximum number of retries if the request fails.
84+
The default value is `0` (No retry).
85+
Note: Retries will only be performed if the request fails with a `429 (Rate limit reached)` or `5xx (Server side errors)` error. Other errors (e.g., authentication failure) will not be retried.
86+
87+
```yaml
88+
Type: Int32
89+
Required: False
90+
Position: Named
91+
Default value: 0
92+
```
93+
94+
### -ApiBase
95+
Specifies an API endpoint URL such as: `https://your-api-endpoint.test/v1`
96+
If not specified, it will use `https://api.openai.com/v1`.
97+
98+
```yaml
99+
Type: System.Uri
100+
Required: False
101+
Position: Named
102+
Default value: https://api.openai.com/v1
103+
```
104+
105+
### -ApiKey
106+
Specifies API key for authentication.
107+
The type of data should be `[string]` or `[securestring]`.
108+
If not specified, it will try to use `$global:OPENAI_API_KEY` or `$env:OPENAI_API_KEY`.
109+
110+
```yaml
111+
Type: Object
112+
Required: False
113+
Position: Named
114+
```
115+
116+
### -Organization
117+
Specifies Organization ID used for an API request.
118+
If not specified, it will try to use `$global:OPENAI_ORGANIZATION` or `$env:OPENAI_ORGANIZATION`.
119+
120+
```yaml
121+
Type: string
122+
Aliases: OrgId
123+
Required: False
124+
Position: Named
125+
```
126+
127+
## INPUTS
128+
129+
## OUTPUTS
130+
131+
### PSCustomObject
132+
133+
## NOTES
134+
135+
## RELATED LINKS
136+
137+
[https://platform.openai.com/docs/api-reference/container-files/createContainerFile](https://platform.openai.com/docs/api-reference/container-files/createContainerFile)

Docs/Get-Container.md

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
---
2+
external help file: PSOpenAI-help.xml
3+
Module Name: PSOpenAI
4+
online version: https://github.com/mkht/PSOpenAI/blob/main/Docs/Get-Container.md
5+
schema: 2.0.0
6+
---
7+
8+
# Get-Container
9+
10+
## SYNOPSIS
11+
Retrieves a container.
12+
13+
## SYNTAX
14+
15+
### Get
16+
```
17+
Get-Container
18+
[-ContainerId] <String>
19+
[-TimeoutSec <Int32>]
20+
[-MaxRetryCount <Int32>]
21+
[-ApiBase <Uri>]
22+
[-ApiKey <SecureString>]
23+
[-Organization <String>]
24+
[<CommonParameters>]
25+
```
26+
27+
### List
28+
```
29+
Get-Container
30+
[-All]
31+
[-Limit <Int32>]
32+
[-Order <String>]
33+
[-TimeoutSec <Int32>]
34+
[-MaxRetryCount <Int32>]
35+
[-ApiBase <Uri>]
36+
[-ApiKey <SecureString>]
37+
[-Organization <String>]
38+
[<CommonParameters>]
39+
```
40+
41+
## DESCRIPTION
42+
Get a single container or list multiple containers.
43+
44+
## EXAMPLES
45+
46+
### Example 1
47+
```powershell
48+
PS C:\> Get-Container "cont_abc123"
49+
```
50+
Get a container with the ID `cont_abc123`.
51+
52+
### Example 2
53+
```powershell
54+
PS C:\> Get-Container -Limit 5 -Order desc
55+
```
56+
Get the latest 5 containers.
57+
58+
### Example 3
59+
```powershell
60+
PS C:\> Get-Container -All
61+
```
62+
Get all containers.
63+
64+
## PARAMETERS
65+
66+
### -ContainerId
67+
The ID of the container to retrieve.
68+
69+
```yaml
70+
Type: String
71+
Parameter Sets: Get
72+
Aliases: container_id, Container
73+
Required: True
74+
Position: 0
75+
Accept pipeline input: True (ByPropertyName, ByValue)
76+
```
77+
78+
### -Limit
79+
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
80+
81+
```yaml
82+
Type: Int32
83+
Parameter Sets: List
84+
Required: False
85+
Position: Named
86+
Default value: 20
87+
```
88+
89+
### -All
90+
When this switch is specified, all containers will be retrieved.
91+
92+
```yaml
93+
Type: SwitchParameter
94+
Parameter Sets: List
95+
Required: False
96+
Position: Named
97+
```
98+
99+
### -Order
100+
Sort order by the created timestamp of the objects. `asc` for ascending order and `desc` for descending order. The default is `asc`.
101+
102+
```yaml
103+
Type: String
104+
Parameter Sets: List
105+
Accepted values: asc, desc
106+
Required: False
107+
Position: Named
108+
Default value: asc
109+
```
110+
111+
### -TimeoutSec
112+
Specifies how long the request can be pending before it times out.
113+
The default value is `0` (infinite).
114+
115+
```yaml
116+
Type: Int32
117+
Required: False
118+
Position: Named
119+
Default value: 0
120+
```
121+
122+
### -MaxRetryCount
123+
Number between `0` and `100`.
124+
Specifies the maximum number of retries if the request fails.
125+
The default value is `0` (No retry).
126+
Note: Retries will only be performed if the request fails with a `429 (Rate limit reached)` or `5xx (Server side errors)` error. Other errors (e.g., authentication failure) will not be retried.
127+
128+
```yaml
129+
Type: Int32
130+
Required: False
131+
Position: Named
132+
Default value: 0
133+
```
134+
135+
### -ApiBase
136+
Specifies an API endpoint URL such as: `https://your-api-endpoint.test/v1`
137+
If not specified, it will use `https://api.openai.com/v1`.
138+
139+
```yaml
140+
Type: System.Uri
141+
Required: False
142+
Position: Named
143+
Default value: https://api.openai.com/v1
144+
```
145+
146+
### -ApiKey
147+
Specifies API key for authentication.
148+
The type of data should be `[string]` or `[securestring]`.
149+
If not specified, it will try to use `$global:OPENAI_API_KEY` or `$env:OPENAI_API_KEY`.
150+
151+
```yaml
152+
Type: Object
153+
Required: False
154+
Position: Named
155+
```
156+
157+
### -Organization
158+
Specifies Organization ID used for an API request.
159+
If not specified, it will try to use `$global:OPENAI_ORGANIZATION` or `$env:OPENAI_ORGANIZATION`.
160+
161+
```yaml
162+
Type: string
163+
Aliases: OrgId
164+
Required: False
165+
Position: Named
166+
```
167+
168+
## INPUTS
169+
170+
## OUTPUTS
171+
172+
### PSCustomObject
173+
174+
## NOTES
175+
176+
## RELATED LINKS
177+
178+
[https://platform.openai.com/docs/api-reference/containers/retrieveContainer](https://platform.openai.com/docs/api-reference/containers/retrieveContainer)
179+
[https://platform.openai.com/docs/api-reference/containers/listContainer](https://platform.openai.com/docs/api-reference/containers/listContainer)

0 commit comments

Comments
 (0)