|
46 | 46 |
|
47 | 47 | class Perplexity(SyncAPIClient): |
48 | 48 | chat: chat.ChatResource |
49 | | - async_: async_.AsyncResource |
50 | 49 | search: search.SearchResource |
| 50 | + async_: async_.AsyncResource |
51 | 51 | with_raw_response: PerplexityWithRawResponse |
52 | 52 | with_streaming_response: PerplexityWithStreamedResponse |
53 | 53 |
|
@@ -108,8 +108,8 @@ def __init__( |
108 | 108 | self._default_stream_cls = Stream |
109 | 109 |
|
110 | 110 | self.chat = chat.ChatResource(self) |
111 | | - self.async_ = async_.AsyncResource(self) |
112 | 111 | self.search = search.SearchResource(self) |
| 112 | + self.async_ = async_.AsyncResource(self) |
113 | 113 | self.with_raw_response = PerplexityWithRawResponse(self) |
114 | 114 | self.with_streaming_response = PerplexityWithStreamedResponse(self) |
115 | 115 |
|
@@ -220,8 +220,8 @@ def _make_status_error( |
220 | 220 |
|
221 | 221 | class AsyncPerplexity(AsyncAPIClient): |
222 | 222 | chat: chat.AsyncChatResource |
223 | | - async_: async_.AsyncAsyncResource |
224 | 223 | search: search.AsyncSearchResource |
| 224 | + async_: async_.AsyncAsyncResource |
225 | 225 | with_raw_response: AsyncPerplexityWithRawResponse |
226 | 226 | with_streaming_response: AsyncPerplexityWithStreamedResponse |
227 | 227 |
|
@@ -282,8 +282,8 @@ def __init__( |
282 | 282 | self._default_stream_cls = AsyncStream |
283 | 283 |
|
284 | 284 | self.chat = chat.AsyncChatResource(self) |
285 | | - self.async_ = async_.AsyncAsyncResource(self) |
286 | 285 | self.search = search.AsyncSearchResource(self) |
| 286 | + self.async_ = async_.AsyncAsyncResource(self) |
287 | 287 | self.with_raw_response = AsyncPerplexityWithRawResponse(self) |
288 | 288 | self.with_streaming_response = AsyncPerplexityWithStreamedResponse(self) |
289 | 289 |
|
@@ -395,29 +395,29 @@ def _make_status_error( |
395 | 395 | class PerplexityWithRawResponse: |
396 | 396 | def __init__(self, client: Perplexity) -> None: |
397 | 397 | self.chat = chat.ChatResourceWithRawResponse(client.chat) |
398 | | - self.async_ = async_.AsyncResourceWithRawResponse(client.async_) |
399 | 398 | self.search = search.SearchResourceWithRawResponse(client.search) |
| 399 | + self.async_ = async_.AsyncResourceWithRawResponse(client.async_) |
400 | 400 |
|
401 | 401 |
|
402 | 402 | class AsyncPerplexityWithRawResponse: |
403 | 403 | def __init__(self, client: AsyncPerplexity) -> None: |
404 | 404 | self.chat = chat.AsyncChatResourceWithRawResponse(client.chat) |
405 | | - self.async_ = async_.AsyncAsyncResourceWithRawResponse(client.async_) |
406 | 405 | self.search = search.AsyncSearchResourceWithRawResponse(client.search) |
| 406 | + self.async_ = async_.AsyncAsyncResourceWithRawResponse(client.async_) |
407 | 407 |
|
408 | 408 |
|
409 | 409 | class PerplexityWithStreamedResponse: |
410 | 410 | def __init__(self, client: Perplexity) -> None: |
411 | 411 | self.chat = chat.ChatResourceWithStreamingResponse(client.chat) |
412 | | - self.async_ = async_.AsyncResourceWithStreamingResponse(client.async_) |
413 | 412 | self.search = search.SearchResourceWithStreamingResponse(client.search) |
| 413 | + self.async_ = async_.AsyncResourceWithStreamingResponse(client.async_) |
414 | 414 |
|
415 | 415 |
|
416 | 416 | class AsyncPerplexityWithStreamedResponse: |
417 | 417 | def __init__(self, client: AsyncPerplexity) -> None: |
418 | 418 | self.chat = chat.AsyncChatResourceWithStreamingResponse(client.chat) |
419 | | - self.async_ = async_.AsyncAsyncResourceWithStreamingResponse(client.async_) |
420 | 419 | self.search = search.AsyncSearchResourceWithStreamingResponse(client.search) |
| 420 | + self.async_ = async_.AsyncAsyncResourceWithStreamingResponse(client.async_) |
421 | 421 |
|
422 | 422 |
|
423 | 423 | Client = Perplexity |
|
0 commit comments