|
34 | 34 | if TYPE_CHECKING:
|
35 | 35 | from .resources import (
|
36 | 36 | chat,
|
37 |
| - agents, |
| 37 | + agents, images, |
38 | 38 | models,
|
39 | 39 | regions,
|
40 | 40 | databases,
|
|
49 | 49 | AsyncGPUDropletsResource,
|
50 | 50 | )
|
51 | 51 | from .resources.agents.agents import AgentsResource, AsyncAgentsResource
|
| 52 | + from .resources.images.images import ImagesResource, AsyncImagesResource |
52 | 53 | from .resources.models.models import ModelsResource, AsyncModelsResource
|
53 | 54 | from .resources.databases.databases import DatabasesResource, AsyncDatabasesResource
|
54 | 55 | from .resources.inference.inference import InferenceResource, AsyncInferenceResource
|
@@ -182,6 +183,12 @@ def chat(self) -> ChatResource:
|
182 | 183 |
|
183 | 184 | return ChatResource(self)
|
184 | 185 |
|
| 186 | + @cached_property |
| 187 | + def images(self) -> ImagesResource: |
| 188 | + from .resources.images import ImagesResource |
| 189 | + |
| 190 | + return ImagesResource(self) |
| 191 | + |
185 | 192 | @cached_property
|
186 | 193 | def gpu_droplets(self) -> GPUDropletsResource:
|
187 | 194 | from .resources.gpu_droplets import GPUDropletsResource
|
@@ -471,6 +478,12 @@ def chat(self) -> AsyncChatResource:
|
471 | 478 |
|
472 | 479 | return AsyncChatResource(self)
|
473 | 480 |
|
| 481 | + @cached_property |
| 482 | + def images(self) -> AsyncImagesResource: |
| 483 | + from .resources.images import AsyncImagesResource |
| 484 | + |
| 485 | + return AsyncImagesResource(self) |
| 486 | + |
474 | 487 | @cached_property
|
475 | 488 | def gpu_droplets(self) -> AsyncGPUDropletsResource:
|
476 | 489 | from .resources.gpu_droplets import AsyncGPUDropletsResource
|
@@ -665,6 +678,12 @@ def chat(self) -> chat.ChatResourceWithRawResponse:
|
665 | 678 |
|
666 | 679 | return ChatResourceWithRawResponse(self._client.chat)
|
667 | 680 |
|
| 681 | + @cached_property |
| 682 | + def images(self) -> images.ImagesResourceWithRawResponse: |
| 683 | + from .resources.images import ImagesResourceWithRawResponse |
| 684 | + |
| 685 | + return ImagesResourceWithRawResponse(self._client.images) |
| 686 | + |
668 | 687 | @cached_property
|
669 | 688 | def gpu_droplets(self) -> gpu_droplets.GPUDropletsResourceWithRawResponse:
|
670 | 689 | from .resources.gpu_droplets import GPUDropletsResourceWithRawResponse
|
@@ -720,6 +739,12 @@ def chat(self) -> chat.AsyncChatResourceWithRawResponse:
|
720 | 739 |
|
721 | 740 | return AsyncChatResourceWithRawResponse(self._client.chat)
|
722 | 741 |
|
| 742 | + @cached_property |
| 743 | + def images(self) -> images.AsyncImagesResourceWithRawResponse: |
| 744 | + from .resources.images import AsyncImagesResourceWithRawResponse |
| 745 | + |
| 746 | + return AsyncImagesResourceWithRawResponse(self._client.images) |
| 747 | + |
723 | 748 | @cached_property
|
724 | 749 | def gpu_droplets(self) -> gpu_droplets.AsyncGPUDropletsResourceWithRawResponse:
|
725 | 750 | from .resources.gpu_droplets import AsyncGPUDropletsResourceWithRawResponse
|
@@ -779,6 +804,12 @@ def chat(self) -> chat.ChatResourceWithStreamingResponse:
|
779 | 804 |
|
780 | 805 | return ChatResourceWithStreamingResponse(self._client.chat)
|
781 | 806 |
|
| 807 | + @cached_property |
| 808 | + def images(self) -> images.ImagesResourceWithStreamingResponse: |
| 809 | + from .resources.images import ImagesResourceWithStreamingResponse |
| 810 | + |
| 811 | + return ImagesResourceWithStreamingResponse(self._client.images) |
| 812 | + |
782 | 813 | @cached_property
|
783 | 814 | def gpu_droplets(self) -> gpu_droplets.GPUDropletsResourceWithStreamingResponse:
|
784 | 815 | from .resources.gpu_droplets import GPUDropletsResourceWithStreamingResponse
|
@@ -838,6 +869,12 @@ def chat(self) -> chat.AsyncChatResourceWithStreamingResponse:
|
838 | 869 |
|
839 | 870 | return AsyncChatResourceWithStreamingResponse(self._client.chat)
|
840 | 871 |
|
| 872 | + @cached_property |
| 873 | + def images(self) -> images.AsyncImagesResourceWithStreamingResponse: |
| 874 | + from .resources.images import AsyncImagesResourceWithStreamingResponse |
| 875 | + |
| 876 | + return AsyncImagesResourceWithStreamingResponse(self._client.images) |
| 877 | + |
841 | 878 | @cached_property
|
842 | 879 | def gpu_droplets(
|
843 | 880 | self,
|
|
0 commit comments