Commit 3be7414
authored
Add support for included properties (a.k.a.
In addition to offering the expected functionality, this change also fixes #779. That is because the failure reported in this issue is by design, and to fix it, users must request the encrypted reasoning content via the included properties like this:
```csharp
ResponseCreationOptions options = new()
{
StoredOutputEnabled = false,
IncludedProperties = { IncludedResponseProperty.ReasoningEncryptedContent }
};
```
For more context, see the following docs:
> When using the Responses API in a stateless mode (either with `store` set to `false`, or when an organization is enrolled in zero data retention), you must still retain reasoning items across conversation turns using the techniques described above. But in order to have reasoning items that can be sent with subsequent API requests, each of your API requests must have `reasoning.encrypted_content` in the `include` parameter of API requests ... Any reasoning items in the `output` array will now have an `encrypted_content` property, which will contain encrypted reasoning tokens that can be passed along with future conversation turns.
From: 🔗 https://platform.openai.com/docs/guides/reasoning#encrypted-reasoning-itemsinclude) in Responses (#820)1 parent bfadf5c commit 3be7414
File tree
19 files changed
+2050
-1319
lines changed- api
- specification/base/typespec/responses
- src
- Custom/Responses
- Internal
- Generated
- Models/Responses
- tests
- Responses
- SessionRecords/ResponsesTests
19 files changed
+2050
-1319
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5417 | 5417 | | |
5418 | 5418 | | |
5419 | 5419 | | |
| 5420 | + | |
| 5421 | + | |
| 5422 | + | |
| 5423 | + | |
| 5424 | + | |
| 5425 | + | |
| 5426 | + | |
| 5427 | + | |
| 5428 | + | |
| 5429 | + | |
| 5430 | + | |
| 5431 | + | |
| 5432 | + | |
| 5433 | + | |
| 5434 | + | |
| 5435 | + | |
| 5436 | + | |
| 5437 | + | |
| 5438 | + | |
5420 | 5439 | | |
5421 | 5440 | | |
5422 | 5441 | | |
| |||
5637 | 5656 | | |
5638 | 5657 | | |
5639 | 5658 | | |
5640 | | - | |
5641 | | - | |
5642 | | - | |
5643 | | - | |
| 5659 | + | |
| 5660 | + | |
| 5661 | + | |
| 5662 | + | |
5644 | 5663 | | |
5645 | 5664 | | |
5646 | 5665 | | |
5647 | 5666 | | |
5648 | | - | |
5649 | | - | |
| 5667 | + | |
| 5668 | + | |
5650 | 5669 | | |
5651 | 5670 | | |
5652 | 5671 | | |
| |||
5746 | 5765 | | |
5747 | 5766 | | |
5748 | 5767 | | |
| 5768 | + | |
5749 | 5769 | | |
5750 | 5770 | | |
5751 | 5771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4749 | 4749 | | |
4750 | 4750 | | |
4751 | 4751 | | |
| 4752 | + | |
| 4753 | + | |
| 4754 | + | |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
| 4768 | + | |
| 4769 | + | |
4752 | 4770 | | |
4753 | 4771 | | |
4754 | 4772 | | |
| |||
4950 | 4968 | | |
4951 | 4969 | | |
4952 | 4970 | | |
4953 | | - | |
4954 | | - | |
4955 | | - | |
4956 | | - | |
| 4971 | + | |
| 4972 | + | |
| 4973 | + | |
| 4974 | + | |
4957 | 4975 | | |
4958 | 4976 | | |
4959 | 4977 | | |
4960 | 4978 | | |
4961 | | - | |
4962 | | - | |
| 4979 | + | |
| 4980 | + | |
4963 | 4981 | | |
4964 | 4982 | | |
4965 | 4983 | | |
| |||
5048 | 5066 | | |
5049 | 5067 | | |
5050 | 5068 | | |
| 5069 | + | |
5051 | 5070 | | |
5052 | 5071 | | |
5053 | 5072 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | | - | |
46 | | - | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
This file was deleted.
This file was deleted.
0 commit comments