|
8 | 8 |
|
9 | 9 | from __future__ import annotations |
10 | 10 |
|
11 | | -from typing import Dict, Union, Iterable, Optional |
| 11 | +from typing import Dict, List, Union, Iterable, Optional |
12 | 12 | from typing_extensions import Literal, overload |
13 | 13 |
|
14 | 14 | import httpx |
15 | 15 |
|
16 | 16 | from ...types import response_list_params, response_create_params |
17 | | -from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given |
| 17 | +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given |
18 | 18 | from ..._utils import required_args, maybe_transform, async_maybe_transform |
19 | 19 | from ..._compat import cached_property |
20 | 20 | from ..._resource import SyncAPIResource, AsyncAPIResource |
@@ -79,7 +79,20 @@ def create( |
79 | 79 | ], |
80 | 80 | model: str, |
81 | 81 | conversation: Optional[str] | Omit = omit, |
82 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 82 | + include: Optional[ |
| 83 | + List[ |
| 84 | + Literal[ |
| 85 | + "web_search_call.action.sources", |
| 86 | + "code_interpreter_call.outputs", |
| 87 | + "computer_call_output.output.image_url", |
| 88 | + "file_search_call.results", |
| 89 | + "message.input_image.image_url", |
| 90 | + "message.output_text.logprobs", |
| 91 | + "reasoning.encrypted_content", |
| 92 | + ] |
| 93 | + ] |
| 94 | + ] |
| 95 | + | Omit = omit, |
83 | 96 | instructions: Optional[str] | Omit = omit, |
84 | 97 | max_infer_iters: Optional[int] | Omit = omit, |
85 | 98 | max_tool_calls: Optional[int] | Omit = omit, |
@@ -130,7 +143,20 @@ def create( |
130 | 143 | model: str, |
131 | 144 | stream: Literal[True], |
132 | 145 | conversation: Optional[str] | Omit = omit, |
133 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 146 | + include: Optional[ |
| 147 | + List[ |
| 148 | + Literal[ |
| 149 | + "web_search_call.action.sources", |
| 150 | + "code_interpreter_call.outputs", |
| 151 | + "computer_call_output.output.image_url", |
| 152 | + "file_search_call.results", |
| 153 | + "message.input_image.image_url", |
| 154 | + "message.output_text.logprobs", |
| 155 | + "reasoning.encrypted_content", |
| 156 | + ] |
| 157 | + ] |
| 158 | + ] |
| 159 | + | Omit = omit, |
134 | 160 | instructions: Optional[str] | Omit = omit, |
135 | 161 | max_infer_iters: Optional[int] | Omit = omit, |
136 | 162 | max_tool_calls: Optional[int] | Omit = omit, |
@@ -180,7 +206,20 @@ def create( |
180 | 206 | model: str, |
181 | 207 | stream: bool, |
182 | 208 | conversation: Optional[str] | Omit = omit, |
183 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 209 | + include: Optional[ |
| 210 | + List[ |
| 211 | + Literal[ |
| 212 | + "web_search_call.action.sources", |
| 213 | + "code_interpreter_call.outputs", |
| 214 | + "computer_call_output.output.image_url", |
| 215 | + "file_search_call.results", |
| 216 | + "message.input_image.image_url", |
| 217 | + "message.output_text.logprobs", |
| 218 | + "reasoning.encrypted_content", |
| 219 | + ] |
| 220 | + ] |
| 221 | + ] |
| 222 | + | Omit = omit, |
184 | 223 | instructions: Optional[str] | Omit = omit, |
185 | 224 | max_infer_iters: Optional[int] | Omit = omit, |
186 | 225 | max_tool_calls: Optional[int] | Omit = omit, |
@@ -229,7 +268,20 @@ def create( |
229 | 268 | ], |
230 | 269 | model: str, |
231 | 270 | conversation: Optional[str] | Omit = omit, |
232 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 271 | + include: Optional[ |
| 272 | + List[ |
| 273 | + Literal[ |
| 274 | + "web_search_call.action.sources", |
| 275 | + "code_interpreter_call.outputs", |
| 276 | + "computer_call_output.output.image_url", |
| 277 | + "file_search_call.results", |
| 278 | + "message.input_image.image_url", |
| 279 | + "message.output_text.logprobs", |
| 280 | + "reasoning.encrypted_content", |
| 281 | + ] |
| 282 | + ] |
| 283 | + ] |
| 284 | + | Omit = omit, |
233 | 285 | instructions: Optional[str] | Omit = omit, |
234 | 286 | max_infer_iters: Optional[int] | Omit = omit, |
235 | 287 | max_tool_calls: Optional[int] | Omit = omit, |
@@ -434,7 +486,20 @@ async def create( |
434 | 486 | ], |
435 | 487 | model: str, |
436 | 488 | conversation: Optional[str] | Omit = omit, |
437 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 489 | + include: Optional[ |
| 490 | + List[ |
| 491 | + Literal[ |
| 492 | + "web_search_call.action.sources", |
| 493 | + "code_interpreter_call.outputs", |
| 494 | + "computer_call_output.output.image_url", |
| 495 | + "file_search_call.results", |
| 496 | + "message.input_image.image_url", |
| 497 | + "message.output_text.logprobs", |
| 498 | + "reasoning.encrypted_content", |
| 499 | + ] |
| 500 | + ] |
| 501 | + ] |
| 502 | + | Omit = omit, |
438 | 503 | instructions: Optional[str] | Omit = omit, |
439 | 504 | max_infer_iters: Optional[int] | Omit = omit, |
440 | 505 | max_tool_calls: Optional[int] | Omit = omit, |
@@ -485,7 +550,20 @@ async def create( |
485 | 550 | model: str, |
486 | 551 | stream: Literal[True], |
487 | 552 | conversation: Optional[str] | Omit = omit, |
488 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 553 | + include: Optional[ |
| 554 | + List[ |
| 555 | + Literal[ |
| 556 | + "web_search_call.action.sources", |
| 557 | + "code_interpreter_call.outputs", |
| 558 | + "computer_call_output.output.image_url", |
| 559 | + "file_search_call.results", |
| 560 | + "message.input_image.image_url", |
| 561 | + "message.output_text.logprobs", |
| 562 | + "reasoning.encrypted_content", |
| 563 | + ] |
| 564 | + ] |
| 565 | + ] |
| 566 | + | Omit = omit, |
489 | 567 | instructions: Optional[str] | Omit = omit, |
490 | 568 | max_infer_iters: Optional[int] | Omit = omit, |
491 | 569 | max_tool_calls: Optional[int] | Omit = omit, |
@@ -535,7 +613,20 @@ async def create( |
535 | 613 | model: str, |
536 | 614 | stream: bool, |
537 | 615 | conversation: Optional[str] | Omit = omit, |
538 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 616 | + include: Optional[ |
| 617 | + List[ |
| 618 | + Literal[ |
| 619 | + "web_search_call.action.sources", |
| 620 | + "code_interpreter_call.outputs", |
| 621 | + "computer_call_output.output.image_url", |
| 622 | + "file_search_call.results", |
| 623 | + "message.input_image.image_url", |
| 624 | + "message.output_text.logprobs", |
| 625 | + "reasoning.encrypted_content", |
| 626 | + ] |
| 627 | + ] |
| 628 | + ] |
| 629 | + | Omit = omit, |
539 | 630 | instructions: Optional[str] | Omit = omit, |
540 | 631 | max_infer_iters: Optional[int] | Omit = omit, |
541 | 632 | max_tool_calls: Optional[int] | Omit = omit, |
@@ -584,7 +675,20 @@ async def create( |
584 | 675 | ], |
585 | 676 | model: str, |
586 | 677 | conversation: Optional[str] | Omit = omit, |
587 | | - include: Optional[SequenceNotStr[str]] | Omit = omit, |
| 678 | + include: Optional[ |
| 679 | + List[ |
| 680 | + Literal[ |
| 681 | + "web_search_call.action.sources", |
| 682 | + "code_interpreter_call.outputs", |
| 683 | + "computer_call_output.output.image_url", |
| 684 | + "file_search_call.results", |
| 685 | + "message.input_image.image_url", |
| 686 | + "message.output_text.logprobs", |
| 687 | + "reasoning.encrypted_content", |
| 688 | + ] |
| 689 | + ] |
| 690 | + ] |
| 691 | + | Omit = omit, |
588 | 692 | instructions: Optional[str] | Omit = omit, |
589 | 693 | max_infer_iters: Optional[int] | Omit = omit, |
590 | 694 | max_tool_calls: Optional[int] | Omit = omit, |
|
0 commit comments