@@ -119,18 +119,18 @@ def __init__(
119119
120120 self ._default_stream_cls = Stream
121121
122- @cached_property
123- def chat (self ) -> ChatResource :
124- from .resources .chat import ChatResource
125-
126- return ChatResource (self )
127-
128122 @cached_property
129123 def agents (self ) -> AgentsResource :
130124 from .resources .agents import AgentsResource
131125
132126 return AgentsResource (self )
133127
128+ @cached_property
129+ def chat (self ) -> ChatResource :
130+ from .resources .chat import ChatResource
131+
132+ return ChatResource (self )
133+
134134 @cached_property
135135 def model_providers (self ) -> ModelProvidersResource :
136136 from .resources .model_providers import ModelProvidersResource
@@ -359,18 +359,18 @@ def __init__(
359359
360360 self ._default_stream_cls = AsyncStream
361361
362- @cached_property
363- def chat (self ) -> AsyncChatResource :
364- from .resources .chat import AsyncChatResource
365-
366- return AsyncChatResource (self )
367-
368362 @cached_property
369363 def agents (self ) -> AsyncAgentsResource :
370364 from .resources .agents import AsyncAgentsResource
371365
372366 return AsyncAgentsResource (self )
373367
368+ @cached_property
369+ def chat (self ) -> AsyncChatResource :
370+ from .resources .chat import AsyncChatResource
371+
372+ return AsyncChatResource (self )
373+
374374 @cached_property
375375 def model_providers (self ) -> AsyncModelProvidersResource :
376376 from .resources .model_providers import AsyncModelProvidersResource
@@ -539,18 +539,18 @@ class GradientAIWithRawResponse:
539539 def __init__ (self , client : GradientAI ) -> None :
540540 self ._client = client
541541
542- @cached_property
543- def chat (self ) -> chat .ChatResourceWithRawResponse :
544- from .resources .chat import ChatResourceWithRawResponse
545-
546- return ChatResourceWithRawResponse (self ._client .chat )
547-
548542 @cached_property
549543 def agents (self ) -> agents .AgentsResourceWithRawResponse :
550544 from .resources .agents import AgentsResourceWithRawResponse
551545
552546 return AgentsResourceWithRawResponse (self ._client .agents )
553547
548+ @cached_property
549+ def chat (self ) -> chat .ChatResourceWithRawResponse :
550+ from .resources .chat import ChatResourceWithRawResponse
551+
552+ return ChatResourceWithRawResponse (self ._client .chat )
553+
554554 @cached_property
555555 def model_providers (self ) -> model_providers .ModelProvidersResourceWithRawResponse :
556556 from .resources .model_providers import ModelProvidersResourceWithRawResponse
@@ -588,18 +588,18 @@ class AsyncGradientAIWithRawResponse:
588588 def __init__ (self , client : AsyncGradientAI ) -> None :
589589 self ._client = client
590590
591- @cached_property
592- def chat (self ) -> chat .AsyncChatResourceWithRawResponse :
593- from .resources .chat import AsyncChatResourceWithRawResponse
594-
595- return AsyncChatResourceWithRawResponse (self ._client .chat )
596-
597591 @cached_property
598592 def agents (self ) -> agents .AsyncAgentsResourceWithRawResponse :
599593 from .resources .agents import AsyncAgentsResourceWithRawResponse
600594
601595 return AsyncAgentsResourceWithRawResponse (self ._client .agents )
602596
597+ @cached_property
598+ def chat (self ) -> chat .AsyncChatResourceWithRawResponse :
599+ from .resources .chat import AsyncChatResourceWithRawResponse
600+
601+ return AsyncChatResourceWithRawResponse (self ._client .chat )
602+
603603 @cached_property
604604 def model_providers (self ) -> model_providers .AsyncModelProvidersResourceWithRawResponse :
605605 from .resources .model_providers import AsyncModelProvidersResourceWithRawResponse
@@ -637,18 +637,18 @@ class GradientAIWithStreamedResponse:
637637 def __init__ (self , client : GradientAI ) -> None :
638638 self ._client = client
639639
640- @cached_property
641- def chat (self ) -> chat .ChatResourceWithStreamingResponse :
642- from .resources .chat import ChatResourceWithStreamingResponse
643-
644- return ChatResourceWithStreamingResponse (self ._client .chat )
645-
646640 @cached_property
647641 def agents (self ) -> agents .AgentsResourceWithStreamingResponse :
648642 from .resources .agents import AgentsResourceWithStreamingResponse
649643
650644 return AgentsResourceWithStreamingResponse (self ._client .agents )
651645
646+ @cached_property
647+ def chat (self ) -> chat .ChatResourceWithStreamingResponse :
648+ from .resources .chat import ChatResourceWithStreamingResponse
649+
650+ return ChatResourceWithStreamingResponse (self ._client .chat )
651+
652652 @cached_property
653653 def model_providers (self ) -> model_providers .ModelProvidersResourceWithStreamingResponse :
654654 from .resources .model_providers import ModelProvidersResourceWithStreamingResponse
@@ -686,18 +686,18 @@ class AsyncGradientAIWithStreamedResponse:
686686 def __init__ (self , client : AsyncGradientAI ) -> None :
687687 self ._client = client
688688
689- @cached_property
690- def chat (self ) -> chat .AsyncChatResourceWithStreamingResponse :
691- from .resources .chat import AsyncChatResourceWithStreamingResponse
692-
693- return AsyncChatResourceWithStreamingResponse (self ._client .chat )
694-
695689 @cached_property
696690 def agents (self ) -> agents .AsyncAgentsResourceWithStreamingResponse :
697691 from .resources .agents import AsyncAgentsResourceWithStreamingResponse
698692
699693 return AsyncAgentsResourceWithStreamingResponse (self ._client .agents )
700694
695+ @cached_property
696+ def chat (self ) -> chat .AsyncChatResourceWithStreamingResponse :
697+ from .resources .chat import AsyncChatResourceWithStreamingResponse
698+
699+ return AsyncChatResourceWithStreamingResponse (self ._client .chat )
700+
701701 @cached_property
702702 def model_providers (self ) -> model_providers .AsyncModelProvidersResourceWithStreamingResponse :
703703 from .resources .model_providers import AsyncModelProvidersResourceWithStreamingResponse
0 commit comments