Skip to content

Commit 04c6366

Browse files
committed
merge
2 parents 79fe2a2 + 08a1193 commit 04c6366

File tree

371 files changed

+26153
-21222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

371 files changed

+26153
-21222
lines changed

.github/workflows/live-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Run live tests
3333
run: dotnet test ./tests/OpenAI.Tests.csproj
3434
--configuration Release
35-
--filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=StoredChat&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Conversation&TestCategory!=Manual"
35+
--filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=StoredChat&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Containers&TestCategory!=Conversation&TestCategory!=MCP&TestCategory!=Manual"
3636
--logger "trx;LogFilePrefix=live"
3737
--results-directory ${{github.workspace}}/artifacts/test-results
3838
${{ env.version_suffix_args}}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Run Live Tests
5656
run: dotnet test ./tests/OpenAI.Tests.csproj
5757
--configuration Release
58-
--filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=StoredChat&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Conversation&TestCategory!=Manual"
58+
--filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=StoredChat&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Containers&TestCategory!=Conversation&TestCategory!=MCP&TestCategory!=Manual"
5959
--logger "trx;LogFilePrefix=live"
6060
--results-directory ${{ github.workspace }}/artifacts/test-results
6161
${{ env.version_suffix_args }}

CHANGELOG.md

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,151 @@
11
# Release History
22

3+
## 2.5.0 (2025-09-23)
4+
5+
### Features Added
6+
7+
- OpenAI.Responses:
8+
- Added the `Model` property to `OpenAIResponseClient`.
9+
- Added the `ServiceDescription` property to `McpTool`.
10+
- Enabled support for connectors, which are OpenAI-maintained MCP wrappers for popular services like Microsoft Outlook or Dropbox.
11+
- Added the `ConnectorId` property to `McpTool`.
12+
- Enabled support for authentication with remote MCP servers.
13+
- Added the `AuthorizationToken` property to `McpTool`.
14+
- Enabled support for the Code Interpreter tool, which allows models to write and run Python code in a sandboxed environment to solve complex problems in domains like data analysis, coding, and math.
15+
- Users can add the new `CodeInterpreterTool` to the `Tools` property of their `ResponseCreationOptions` and configure it.
16+
- Use the `Container` property to configure the sandboxed environment, including any files that should be made available.
17+
18+
### Bugs Fixed
19+
20+
- OpenAI.Responses:
21+
- Fixed an issue with the constructor of `McpToolCallApprovalRequestItem` not taking the item ID as a parameter. MCP approval requests are correlated to MCP approval responses using this ID, which implies that this ID should be required.
22+
- Fixed an issue with some of the MCP-related `StreamingResponseUpdate` classes missing the `ItemId` and `OutputIndex` properties.
23+
24+
## 2.4.0 (2025-09-05)
25+
26+
### Features Added
27+
28+
- OpenAI.Audio:
29+
- Added the `Endpoint` property to `AudioClient`.
30+
- OpenAI.Batch:
31+
- Added the `Endpoint` property to `BatchClient`.
32+
- OpenAI.Chat:
33+
- Added the `Endpoint` property to `ChatClient`.
34+
- Added the `ServiceTier` property to `ChatCompletionOptions`, `ChatCompletion`, and `StreamingChatCompletionUpdate` to configure the policy that the server will use to process the request in terms of pricing, performance, etc.
35+
- Added an explicit conversion operator to `ChatCompletion` and `ChatCompletionDeletionResult` to convert from `ClientResult`.
36+
- OpenAI.Containers:
37+
- Added the `Endpoint` property to `ContainerClient`.
38+
- Added convenience counterparts to the protocol methods of `ContainerClient` that use the strongly-typed model classes.
39+
- Added automatic pagination support to the following methods of `ContainerClient`:
40+
- `GetContainers` and `GetContainersAsync`
41+
- `GetContainerFiles` and `GetContainerFilesAsync`
42+
- Added an explicit conversion operator to `ContainerResource`, `ContainerFileResource`, `DeleteContainerResponse`, and `DeleteContainerFileResponse` to convert from `ClientResult`.
43+
- OpenAI.Embeddings:
44+
- Added the `Endpoint` property to `EmbeddingsClient`.
45+
- Added an explicit conversion operator to `OpenAIEmbeddingCollection` to convert from `ClientResult`.
46+
- OpenAI.Evals:
47+
- Added the `Endpoint` property to `EvaluationClient`.
48+
- OpenAI.Files:
49+
- Added the `Endpoint` property to `OpenAIFileClient`.
50+
- Added an explicit conversion operator to `OpenAIFile`, `OpenAIFileCollection`, and `FileDeletionResult` to convert from `ClientResult`.
51+
- OpenAI.FineTuning:
52+
- Added the `Endpoint` property to `FineTuningClient`.
53+
- OpenAI.Graders:
54+
- Added the `Endpoint` property to `GraderClient`.
55+
- Added an explicit conversion operator to `RunGraderResponse` and `ValidateGraderResponse` to convert from `ClientResult`.
56+
- OpenAI.Images:
57+
- Added the `Endpoint` property to `ImageClient`.
58+
- Added an explicit conversion operator to `GeneratedImageCollection` to convert from `ClientResult`.
59+
- Added the `Background` property to `ImageEditOptions` to set transparency for the background of the generated image(s).
60+
- Added the `Quality` property to `ImageEditOptions` to set the quality of the generated image(s).
61+
- OpenAI.Images:
62+
- Added the `Endpoint` property to `ImageClient`.
63+
- Added an explicit conversion operator to `GeneratedImageCollection` to convert from `ClientResult`.
64+
- Added the `Background` property to `ImageEditOptions` to set transparency for the background of the generated image(s).
65+
- Added the `Quality` property to `ImageEditOptions` to set the quality of the generated image(s).
66+
- OpenAI.Models:
67+
- Added the `Endpoint` property to `OpenAIModelClient`.
68+
- Added an explicit conversion operator to `OpenAIModel`, `OpenAIModelCollection`, and `ModelDeletionResult` to convert from `ClientResult`.
69+
- OpenAI.Moderations:
70+
- Added the `Endpoint` property to `ModerationClient`.
71+
- Added an explicit conversion operator to `ModerationResultCollection` to convert from `ClientResult`.
72+
- OpenAI.Realtime:
73+
- Added a constructor that can take a string API key to `RealtimeClient`.
74+
- Added constructors that can take a custom `AuthenticationPolicy` to `RealtimeClient`.
75+
- Added the `Endpoint` property to `RealtimeClient`.
76+
- Replaced the `RequestOptions` parameter of the following methods of `RealtimeClient` for a new `RealtimeSessionOptions` parameter and a `CancellationToken` parameter:
77+
- `StartConversationSession` and `StartConversationSessionAsync`
78+
- `StartTranscriptionSession` and `StartTranscriptionSessionAsync`
79+
- `StartSession` and `StartSessionAsync`
80+
- OpenAI.Responses:
81+
- Added the `Endpoint` property to `OpenAIResponseClient`.
82+
- Added an explicit conversion operator to `OpenAIResponse` to convert from `ClientResult`.
83+
- Added new classes derived from `ResponseTool` to facilitate certain scenarios:
84+
- `FunctionTool`
85+
- `FileSearchTool`
86+
- `WebSearchTool`
87+
- `ComputerTool`
88+
- Added initial support for integrating with remote MCP servers via the Responses API in streaming and non-streaming scenarios.
89+
- Users can add the new `McpTool` to the `Tools` property of their `ResponseCreationOptions` and configure it.
90+
- Use the `AllowedTools` property to limit which of the server tools can be called by the model.
91+
- Use the `ToolCallApprovalPolicy` property to specify which tools require an explicit approval before being called by the model.
92+
- Support for selecting the `McpTool` via the `ToolChoice` property is coming soon.
93+
- Support for configuring the `McpTool` with an access token that can be used to authenticate with the remote MCP server is coming soon.
94+
- Support for connectors is coming soon.
95+
- Added new classes derived from `ResponseMessageAnnotation` to facilitate certain scenarios:
96+
- `FileCitationMessageAnnotation`
97+
- `FilePathMessageAnnotation`
98+
- `UriCitationMessageAnnotation`
99+
- Added the `ServiceTier` property to `ResponseCreationOptions`, `OpenAIResponse`, and `StreamingChatCompletionUpdate` to configure the policy that the server will use to process the request in terms of pricing, performance, etc.
100+
- OpenAI.VectorStores:
101+
- Added the `Endpoint` property to `OpenAIResponseClient`.
102+
- Added an explicit conversion operator to `VectorStore`, `VectorStoreFile`, `VectorStoreFileBatch`, `VectorStoreDeletionResult`, and `FileFromStoreRemovalResult` to convert from `ClientResult`.
103+
104+
### Bug Fixed
105+
106+
- OpenAI.Realtime:
107+
- Fixed an issue with the classes derived from `ResponseItem` (such as `ReasoningResponseItem`) missing some constructors or property setters, which made it difficult to use them as inputs.
108+
- Fixed an issue with the HTTP pipeline of the `RealtimeClient` that was preventing the following methods from working correctly:
109+
- `CreateEphemeralToken` and `CreateEphemeralTokenAsync`
110+
- `CreateEphemeralTranscriptionToken` and `CreateEphemeralTranscriptionTokenAsync`
111+
112+
### Breaking Changes in Preview APIs
113+
114+
- OpenAI.Chat:
115+
- Changed the type of the `options` parameter of the `GetChatCompletionMessages` method of the `ChatClient` from `ChatCompletionCollectionOptions` to `ChatCompletionMessageCollectionOptions`.
116+
- OpenAI.Realtime:
117+
- Replaced the `RequestOptions` parameter for a new `RealtimeSessionOptions` parameter and a `CancellationToken` parameter.
118+
- OpenAI.Responses:
119+
- Renamed the `Background` property to `BackgroundModeEnabled` for clarity.
120+
- Renamed the `ComputerOutput` class to `ComputerCallOutput`.
121+
- Changed the type of the `Delta` property of `StreamingResponseFunctionCallArgumentsDeltaUpdate` from `string` to `BinaryData`.
122+
- Changed the type of the `Arguments` property of `StreamingResponseFunctionCallArgumentsDoneUpdate` from `string` to `BinaryData` and renamed it to `FunctionArguments`.
123+
- Renamed the `WebSearchContextSize` class to `WebSearchToolContextSize`.
124+
- Renamed the `WebSearchUserLocation` class to `WebSearchToolLocation`.
125+
- Refactored the factory methods of `ResponseItem`.
126+
- Refactored the factory methods of `ResponseTool`.
127+
- Removed the properties of `ResponseMessageAnnotation` except for the `Kind` property and moved them to the new derived types.
128+
- OpenAI.VectorStores:
129+
- Removed the `OperationResult` pattern along with the `CreateVectorStoreOperation` `AddFileToVectorStoreOperation`, and `CreateBatchFileJobOperation` classes.
130+
- Renamed the `VectorStoreBatchFileJob` class to `VectorStoreFileBatch`
131+
- Renamed the `VectorStoreFileAssociation` class to `VectorStoreFile`
132+
- Renamed the `VectorStoreFileAssociationError` class to `VectorStoreFileError`
133+
- Renamed the `VectorStoreFileAssociationStatus` class to `VectorStoreFileStatus`
134+
- Renamed the `VectorStoreFileAssociationErrorCode` class to `VectorStoreFileErrorCode`
135+
- Renamed the `VectorStoreFileAssociationCollectionOptions` class to `VectorStoreFileCollectionOptions`
136+
- Renamed the `VectorStoreFileAssociationCollectionOrder` class to `VectorStoreFileCollectionOrder`
137+
- Renamed the `CancelBatchFileJob` and `CancelBatchFileJobAsync` methods of `VectorStoreClient` to `CancelVectorStoreFileBatch` and `CancelVectorStoreFileBatchAsync`
138+
- Renamed the `CreateBatchFileJob` and `CreateBatchFileJobAsync` methods of `VectorStoreClient` to `AddFileBatchToVectorStore` and `AddFileBatchToVectorStoreAsync`
139+
- Renamed the `GetBatchFileJob` and `GetBatchFileJobAsync` methods of `VectorStoreClient` to `GetVectorStoreFileBatch` and `GetVectorStoreFileBatchAsync`
140+
- Renamed the `GetFileAssociation` and `GetFileAssociationAsync` methods of `VectorStoreClient` to `GetVectorStoreFile` and `GetVectorStoreFileAsync`
141+
- Renamed the `GetFileAssociations` and `GetFileAssociationsAsync` methods of `VectorStoreClient` to `GetVectorStoreFiles` and `GetVectorStoreFilesAsync`
142+
- Renamed the `GetFileAssociationsInBatch` and `GetFileAssociationsInBatchAsync` methods of `VectorStoreClient` to `GetVectorStoreFilesInBatch` and `GetVectorStoreFilesInBatchAsync`
143+
- Renamed the `RemoveFileFromStore` and `RemoveFileFromStoreAsync` methods of `VectorStoreClient` to `RemoveFileFromVectorStore` and `RemoveFileFromVectorStoreAsync`
144+
145+
### Other Changes
146+
147+
- Updated the `System.ClientModel` dependency to version 1.6.1.
148+
3149
## 2.3.0 (2025-08-01)
4150

5151
### Features Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1101,4 +1101,4 @@ By default, the client classes will automatically retry the following errors up
11011101

11021102
### Observability
11031103

1104-
OpenAI .NET library supports experimental distributed tracing and metrics with OpenTelemetry. Check out [Observability with OpenTelemetry](./docs/observability.md) for more details.
1104+
OpenAI .NET library supports experimental distributed tracing and metrics with OpenTelemetry. Check out [Observability with OpenTelemetry](./docs/Observability.md) for more details.

0 commit comments

Comments
 (0)