|
36 | 36 | ) |
37 | 37 |
|
38 | 38 | if TYPE_CHECKING: |
39 | | - from .resources import chat, files, tools, graphs, models, vision, completions, translation, applications |
| 39 | + from .resources import chat, files, tools, graphs, models, vision, completions, applications |
40 | 40 | from .resources.chat import ChatResource, AsyncChatResource |
41 | 41 | from .resources.files import FilesResource, AsyncFilesResource |
42 | 42 | from .resources.tools import ToolsResource, AsyncToolsResource |
43 | 43 | from .resources.graphs import GraphsResource, AsyncGraphsResource |
44 | 44 | from .resources.models import ModelsResource, AsyncModelsResource |
45 | 45 | from .resources.vision import VisionResource, AsyncVisionResource |
46 | 46 | from .resources.completions import CompletionsResource, AsyncCompletionsResource |
47 | | - from .resources.translation import TranslationResource, AsyncTranslationResource |
48 | 47 | from .resources.applications.applications import ApplicationsResource, AsyncApplicationsResource |
49 | 48 |
|
50 | 49 | __all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Writer", "AsyncWriter", "Client", "AsyncClient"] |
@@ -158,12 +157,6 @@ def tools(self) -> ToolsResource: |
158 | 157 |
|
159 | 158 | return ToolsResource(self) |
160 | 159 |
|
161 | | - @cached_property |
162 | | - def translation(self) -> TranslationResource: |
163 | | - from .resources.translation import TranslationResource |
164 | | - |
165 | | - return TranslationResource(self) |
166 | | - |
167 | 160 | @cached_property |
168 | 161 | def vision(self) -> VisionResource: |
169 | 162 | from .resources.vision import VisionResource |
@@ -391,12 +384,6 @@ def tools(self) -> AsyncToolsResource: |
391 | 384 |
|
392 | 385 | return AsyncToolsResource(self) |
393 | 386 |
|
394 | | - @cached_property |
395 | | - def translation(self) -> AsyncTranslationResource: |
396 | | - from .resources.translation import AsyncTranslationResource |
397 | | - |
398 | | - return AsyncTranslationResource(self) |
399 | | - |
400 | 387 | @cached_property |
401 | 388 | def vision(self) -> AsyncVisionResource: |
402 | 389 | from .resources.vision import AsyncVisionResource |
@@ -564,12 +551,6 @@ def tools(self) -> tools.ToolsResourceWithRawResponse: |
564 | 551 |
|
565 | 552 | return ToolsResourceWithRawResponse(self._client.tools) |
566 | 553 |
|
567 | | - @cached_property |
568 | | - def translation(self) -> translation.TranslationResourceWithRawResponse: |
569 | | - from .resources.translation import TranslationResourceWithRawResponse |
570 | | - |
571 | | - return TranslationResourceWithRawResponse(self._client.translation) |
572 | | - |
573 | 554 | @cached_property |
574 | 555 | def vision(self) -> vision.VisionResourceWithRawResponse: |
575 | 556 | from .resources.vision import VisionResourceWithRawResponse |
@@ -625,12 +606,6 @@ def tools(self) -> tools.AsyncToolsResourceWithRawResponse: |
625 | 606 |
|
626 | 607 | return AsyncToolsResourceWithRawResponse(self._client.tools) |
627 | 608 |
|
628 | | - @cached_property |
629 | | - def translation(self) -> translation.AsyncTranslationResourceWithRawResponse: |
630 | | - from .resources.translation import AsyncTranslationResourceWithRawResponse |
631 | | - |
632 | | - return AsyncTranslationResourceWithRawResponse(self._client.translation) |
633 | | - |
634 | 609 | @cached_property |
635 | 610 | def vision(self) -> vision.AsyncVisionResourceWithRawResponse: |
636 | 611 | from .resources.vision import AsyncVisionResourceWithRawResponse |
@@ -686,12 +661,6 @@ def tools(self) -> tools.ToolsResourceWithStreamingResponse: |
686 | 661 |
|
687 | 662 | return ToolsResourceWithStreamingResponse(self._client.tools) |
688 | 663 |
|
689 | | - @cached_property |
690 | | - def translation(self) -> translation.TranslationResourceWithStreamingResponse: |
691 | | - from .resources.translation import TranslationResourceWithStreamingResponse |
692 | | - |
693 | | - return TranslationResourceWithStreamingResponse(self._client.translation) |
694 | | - |
695 | 664 | @cached_property |
696 | 665 | def vision(self) -> vision.VisionResourceWithStreamingResponse: |
697 | 666 | from .resources.vision import VisionResourceWithStreamingResponse |
@@ -747,12 +716,6 @@ def tools(self) -> tools.AsyncToolsResourceWithStreamingResponse: |
747 | 716 |
|
748 | 717 | return AsyncToolsResourceWithStreamingResponse(self._client.tools) |
749 | 718 |
|
750 | | - @cached_property |
751 | | - def translation(self) -> translation.AsyncTranslationResourceWithStreamingResponse: |
752 | | - from .resources.translation import AsyncTranslationResourceWithStreamingResponse |
753 | | - |
754 | | - return AsyncTranslationResourceWithStreamingResponse(self._client.translation) |
755 | | - |
756 | 719 | @cached_property |
757 | 720 | def vision(self) -> vision.AsyncVisionResourceWithStreamingResponse: |
758 | 721 | from .resources.vision import AsyncVisionResourceWithStreamingResponse |
|
0 commit comments