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