|
22 | 22 | from ..._base_client import make_request_options |
23 | 23 | from ...types.stream_chunk import StreamChunk |
24 | 24 | from ...types.shared_params.chat_message_input import ChatMessageInput |
| 25 | +from ...types.shared_params.web_search_options import WebSearchOptions |
25 | 26 |
|
26 | 27 | __all__ = ["CompletionsResource", "AsyncCompletionsResource"] |
27 | 28 |
|
@@ -108,7 +109,7 @@ def create( |
108 | 109 | updated_before_timestamp: Optional[int] | Omit = omit, |
109 | 110 | use_threads: Optional[bool] | Omit = omit, |
110 | 111 | user_original_query: Optional[str] | Omit = omit, |
111 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 112 | + web_search_options: WebSearchOptions | Omit = omit, |
112 | 113 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
113 | 114 | # The extra values given here take precedence over values defined on the client or passed to this method. |
114 | 115 | extra_headers: Headers | None = None, |
@@ -192,7 +193,7 @@ def create( |
192 | 193 | updated_before_timestamp: Optional[int] | Omit = omit, |
193 | 194 | use_threads: Optional[bool] | Omit = omit, |
194 | 195 | user_original_query: Optional[str] | Omit = omit, |
195 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 196 | + web_search_options: WebSearchOptions | Omit = omit, |
196 | 197 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
197 | 198 | # The extra values given here take precedence over values defined on the client or passed to this method. |
198 | 199 | extra_headers: Headers | None = None, |
@@ -276,7 +277,7 @@ def create( |
276 | 277 | updated_before_timestamp: Optional[int] | Omit = omit, |
277 | 278 | use_threads: Optional[bool] | Omit = omit, |
278 | 279 | user_original_query: Optional[str] | Omit = omit, |
279 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 280 | + web_search_options: WebSearchOptions | Omit = omit, |
280 | 281 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
281 | 282 | # The extra values given here take precedence over values defined on the client or passed to this method. |
282 | 283 | extra_headers: Headers | None = None, |
@@ -360,7 +361,7 @@ def create( |
360 | 361 | updated_before_timestamp: Optional[int] | Omit = omit, |
361 | 362 | use_threads: Optional[bool] | Omit = omit, |
362 | 363 | user_original_query: Optional[str] | Omit = omit, |
363 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 364 | + web_search_options: WebSearchOptions | Omit = omit, |
364 | 365 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
365 | 366 | # The extra values given here take precedence over values defined on the client or passed to this method. |
366 | 367 | extra_headers: Headers | None = None, |
@@ -527,7 +528,7 @@ async def create( |
527 | 528 | updated_before_timestamp: Optional[int] | Omit = omit, |
528 | 529 | use_threads: Optional[bool] | Omit = omit, |
529 | 530 | user_original_query: Optional[str] | Omit = omit, |
530 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 531 | + web_search_options: WebSearchOptions | Omit = omit, |
531 | 532 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
532 | 533 | # The extra values given here take precedence over values defined on the client or passed to this method. |
533 | 534 | extra_headers: Headers | None = None, |
@@ -611,7 +612,7 @@ async def create( |
611 | 612 | updated_before_timestamp: Optional[int] | Omit = omit, |
612 | 613 | use_threads: Optional[bool] | Omit = omit, |
613 | 614 | user_original_query: Optional[str] | Omit = omit, |
614 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 615 | + web_search_options: WebSearchOptions | Omit = omit, |
615 | 616 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
616 | 617 | # The extra values given here take precedence over values defined on the client or passed to this method. |
617 | 618 | extra_headers: Headers | None = None, |
@@ -695,7 +696,7 @@ async def create( |
695 | 696 | updated_before_timestamp: Optional[int] | Omit = omit, |
696 | 697 | use_threads: Optional[bool] | Omit = omit, |
697 | 698 | user_original_query: Optional[str] | Omit = omit, |
698 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 699 | + web_search_options: WebSearchOptions | Omit = omit, |
699 | 700 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
700 | 701 | # The extra values given here take precedence over values defined on the client or passed to this method. |
701 | 702 | extra_headers: Headers | None = None, |
@@ -779,7 +780,7 @@ async def create( |
779 | 780 | updated_before_timestamp: Optional[int] | Omit = omit, |
780 | 781 | use_threads: Optional[bool] | Omit = omit, |
781 | 782 | user_original_query: Optional[str] | Omit = omit, |
782 | | - web_search_options: completion_create_params.WebSearchOptions | Omit = omit, |
| 783 | + web_search_options: WebSearchOptions | Omit = omit, |
783 | 784 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. |
784 | 785 | # The extra values given here take precedence over values defined on the client or passed to this method. |
785 | 786 | extra_headers: Headers | None = None, |
|
0 commit comments