|
21 | 21 | ) |
22 | 22 | from ._utils import is_given, get_async_library |
23 | 23 | from ._version import __version__ |
24 | | -from .resources import embeddings, rerankings |
| 24 | +from .resources import rerankings |
25 | 25 | from ._streaming import Stream as Stream, AsyncStream as AsyncStream |
26 | 26 | from ._exceptions import IsaacusError, APIStatusError |
27 | 27 | from ._base_client import ( |
|
36 | 36 |
|
37 | 37 |
|
38 | 38 | class Isaacus(SyncAPIClient): |
39 | | - embeddings: embeddings.EmbeddingsResource |
40 | 39 | classifications: classifications.ClassificationsResource |
41 | 40 | rerankings: rerankings.RerankingsResource |
42 | 41 | extractions: extractions.ExtractionsResource |
@@ -97,7 +96,6 @@ def __init__( |
97 | 96 | _strict_response_validation=_strict_response_validation, |
98 | 97 | ) |
99 | 98 |
|
100 | | - self.embeddings = embeddings.EmbeddingsResource(self) |
101 | 99 | self.classifications = classifications.ClassificationsResource(self) |
102 | 100 | self.rerankings = rerankings.RerankingsResource(self) |
103 | 101 | self.extractions = extractions.ExtractionsResource(self) |
@@ -210,7 +208,6 @@ def _make_status_error( |
210 | 208 |
|
211 | 209 |
|
212 | 210 | class AsyncIsaacus(AsyncAPIClient): |
213 | | - embeddings: embeddings.AsyncEmbeddingsResource |
214 | 211 | classifications: classifications.AsyncClassificationsResource |
215 | 212 | rerankings: rerankings.AsyncRerankingsResource |
216 | 213 | extractions: extractions.AsyncExtractionsResource |
@@ -271,7 +268,6 @@ def __init__( |
271 | 268 | _strict_response_validation=_strict_response_validation, |
272 | 269 | ) |
273 | 270 |
|
274 | | - self.embeddings = embeddings.AsyncEmbeddingsResource(self) |
275 | 271 | self.classifications = classifications.AsyncClassificationsResource(self) |
276 | 272 | self.rerankings = rerankings.AsyncRerankingsResource(self) |
277 | 273 | self.extractions = extractions.AsyncExtractionsResource(self) |
@@ -385,31 +381,27 @@ def _make_status_error( |
385 | 381 |
|
386 | 382 | class IsaacusWithRawResponse: |
387 | 383 | def __init__(self, client: Isaacus) -> None: |
388 | | - self.embeddings = embeddings.EmbeddingsResourceWithRawResponse(client.embeddings) |
389 | 384 | self.classifications = classifications.ClassificationsResourceWithRawResponse(client.classifications) |
390 | 385 | self.rerankings = rerankings.RerankingsResourceWithRawResponse(client.rerankings) |
391 | 386 | self.extractions = extractions.ExtractionsResourceWithRawResponse(client.extractions) |
392 | 387 |
|
393 | 388 |
|
394 | 389 | class AsyncIsaacusWithRawResponse: |
395 | 390 | def __init__(self, client: AsyncIsaacus) -> None: |
396 | | - self.embeddings = embeddings.AsyncEmbeddingsResourceWithRawResponse(client.embeddings) |
397 | 391 | self.classifications = classifications.AsyncClassificationsResourceWithRawResponse(client.classifications) |
398 | 392 | self.rerankings = rerankings.AsyncRerankingsResourceWithRawResponse(client.rerankings) |
399 | 393 | self.extractions = extractions.AsyncExtractionsResourceWithRawResponse(client.extractions) |
400 | 394 |
|
401 | 395 |
|
402 | 396 | class IsaacusWithStreamedResponse: |
403 | 397 | def __init__(self, client: Isaacus) -> None: |
404 | | - self.embeddings = embeddings.EmbeddingsResourceWithStreamingResponse(client.embeddings) |
405 | 398 | self.classifications = classifications.ClassificationsResourceWithStreamingResponse(client.classifications) |
406 | 399 | self.rerankings = rerankings.RerankingsResourceWithStreamingResponse(client.rerankings) |
407 | 400 | self.extractions = extractions.ExtractionsResourceWithStreamingResponse(client.extractions) |
408 | 401 |
|
409 | 402 |
|
410 | 403 | class AsyncIsaacusWithStreamedResponse: |
411 | 404 | def __init__(self, client: AsyncIsaacus) -> None: |
412 | | - self.embeddings = embeddings.AsyncEmbeddingsResourceWithStreamingResponse(client.embeddings) |
413 | 405 | self.classifications = classifications.AsyncClassificationsResourceWithStreamingResponse(client.classifications) |
414 | 406 | self.rerankings = rerankings.AsyncRerankingsResourceWithStreamingResponse(client.rerankings) |
415 | 407 | self.extractions = extractions.AsyncExtractionsResourceWithStreamingResponse(client.extractions) |
|
0 commit comments