|
31 | 31 | ) |
32 | 32 |
|
33 | 33 | if TYPE_CHECKING: |
34 | | - from .resources import chat, agents, models, regions, api_keys, providers, indexing_jobs, knowledge_bases |
| 34 | + from .resources import chat, agents, models, regions, inference, providers, indexing_jobs, knowledge_bases |
35 | 35 | from .resources.models import ModelsResource, AsyncModelsResource |
36 | 36 | from .resources.regions import RegionsResource, AsyncRegionsResource |
37 | | - from .resources.api_keys import APIKeysResource, AsyncAPIKeysResource |
38 | 37 | from .resources.chat.chat import ChatResource, AsyncChatResource |
39 | 38 | from .resources.agents.agents import AgentsResource, AsyncAgentsResource |
40 | 39 | from .resources.indexing_jobs import IndexingJobsResource, AsyncIndexingJobsResource |
| 40 | + from .resources.inference.inference import InferenceResource, AsyncInferenceResource |
41 | 41 | from .resources.providers.providers import ProvidersResource, AsyncProvidersResource |
42 | 42 | from .resources.knowledge_bases.knowledge_bases import KnowledgeBasesResource, AsyncKnowledgeBasesResource |
43 | 43 |
|
@@ -139,18 +139,18 @@ def knowledge_bases(self) -> KnowledgeBasesResource: |
139 | 139 |
|
140 | 140 | return KnowledgeBasesResource(self) |
141 | 141 |
|
142 | | - @cached_property |
143 | | - def api_keys(self) -> APIKeysResource: |
144 | | - from .resources.api_keys import APIKeysResource |
145 | | - |
146 | | - return APIKeysResource(self) |
147 | | - |
148 | 142 | @cached_property |
149 | 143 | def chat(self) -> ChatResource: |
150 | 144 | from .resources.chat import ChatResource |
151 | 145 |
|
152 | 146 | return ChatResource(self) |
153 | 147 |
|
| 148 | + @cached_property |
| 149 | + def inference(self) -> InferenceResource: |
| 150 | + from .resources.inference import InferenceResource |
| 151 | + |
| 152 | + return InferenceResource(self) |
| 153 | + |
154 | 154 | @cached_property |
155 | 155 | def models(self) -> ModelsResource: |
156 | 156 | from .resources.models import ModelsResource |
@@ -358,18 +358,18 @@ def knowledge_bases(self) -> AsyncKnowledgeBasesResource: |
358 | 358 |
|
359 | 359 | return AsyncKnowledgeBasesResource(self) |
360 | 360 |
|
361 | | - @cached_property |
362 | | - def api_keys(self) -> AsyncAPIKeysResource: |
363 | | - from .resources.api_keys import AsyncAPIKeysResource |
364 | | - |
365 | | - return AsyncAPIKeysResource(self) |
366 | | - |
367 | 361 | @cached_property |
368 | 362 | def chat(self) -> AsyncChatResource: |
369 | 363 | from .resources.chat import AsyncChatResource |
370 | 364 |
|
371 | 365 | return AsyncChatResource(self) |
372 | 366 |
|
| 367 | + @cached_property |
| 368 | + def inference(self) -> AsyncInferenceResource: |
| 369 | + from .resources.inference import AsyncInferenceResource |
| 370 | + |
| 371 | + return AsyncInferenceResource(self) |
| 372 | + |
373 | 373 | @cached_property |
374 | 374 | def models(self) -> AsyncModelsResource: |
375 | 375 | from .resources.models import AsyncModelsResource |
@@ -527,18 +527,18 @@ def knowledge_bases(self) -> knowledge_bases.KnowledgeBasesResourceWithRawRespon |
527 | 527 |
|
528 | 528 | return KnowledgeBasesResourceWithRawResponse(self._client.knowledge_bases) |
529 | 529 |
|
530 | | - @cached_property |
531 | | - def api_keys(self) -> api_keys.APIKeysResourceWithRawResponse: |
532 | | - from .resources.api_keys import APIKeysResourceWithRawResponse |
533 | | - |
534 | | - return APIKeysResourceWithRawResponse(self._client.api_keys) |
535 | | - |
536 | 530 | @cached_property |
537 | 531 | def chat(self) -> chat.ChatResourceWithRawResponse: |
538 | 532 | from .resources.chat import ChatResourceWithRawResponse |
539 | 533 |
|
540 | 534 | return ChatResourceWithRawResponse(self._client.chat) |
541 | 535 |
|
| 536 | + @cached_property |
| 537 | + def inference(self) -> inference.InferenceResourceWithRawResponse: |
| 538 | + from .resources.inference import InferenceResourceWithRawResponse |
| 539 | + |
| 540 | + return InferenceResourceWithRawResponse(self._client.inference) |
| 541 | + |
542 | 542 | @cached_property |
543 | 543 | def models(self) -> models.ModelsResourceWithRawResponse: |
544 | 544 | from .resources.models import ModelsResourceWithRawResponse |
@@ -582,18 +582,18 @@ def knowledge_bases(self) -> knowledge_bases.AsyncKnowledgeBasesResourceWithRawR |
582 | 582 |
|
583 | 583 | return AsyncKnowledgeBasesResourceWithRawResponse(self._client.knowledge_bases) |
584 | 584 |
|
585 | | - @cached_property |
586 | | - def api_keys(self) -> api_keys.AsyncAPIKeysResourceWithRawResponse: |
587 | | - from .resources.api_keys import AsyncAPIKeysResourceWithRawResponse |
588 | | - |
589 | | - return AsyncAPIKeysResourceWithRawResponse(self._client.api_keys) |
590 | | - |
591 | 585 | @cached_property |
592 | 586 | def chat(self) -> chat.AsyncChatResourceWithRawResponse: |
593 | 587 | from .resources.chat import AsyncChatResourceWithRawResponse |
594 | 588 |
|
595 | 589 | return AsyncChatResourceWithRawResponse(self._client.chat) |
596 | 590 |
|
| 591 | + @cached_property |
| 592 | + def inference(self) -> inference.AsyncInferenceResourceWithRawResponse: |
| 593 | + from .resources.inference import AsyncInferenceResourceWithRawResponse |
| 594 | + |
| 595 | + return AsyncInferenceResourceWithRawResponse(self._client.inference) |
| 596 | + |
597 | 597 | @cached_property |
598 | 598 | def models(self) -> models.AsyncModelsResourceWithRawResponse: |
599 | 599 | from .resources.models import AsyncModelsResourceWithRawResponse |
@@ -637,18 +637,18 @@ def knowledge_bases(self) -> knowledge_bases.KnowledgeBasesResourceWithStreaming |
637 | 637 |
|
638 | 638 | return KnowledgeBasesResourceWithStreamingResponse(self._client.knowledge_bases) |
639 | 639 |
|
640 | | - @cached_property |
641 | | - def api_keys(self) -> api_keys.APIKeysResourceWithStreamingResponse: |
642 | | - from .resources.api_keys import APIKeysResourceWithStreamingResponse |
643 | | - |
644 | | - return APIKeysResourceWithStreamingResponse(self._client.api_keys) |
645 | | - |
646 | 640 | @cached_property |
647 | 641 | def chat(self) -> chat.ChatResourceWithStreamingResponse: |
648 | 642 | from .resources.chat import ChatResourceWithStreamingResponse |
649 | 643 |
|
650 | 644 | return ChatResourceWithStreamingResponse(self._client.chat) |
651 | 645 |
|
| 646 | + @cached_property |
| 647 | + def inference(self) -> inference.InferenceResourceWithStreamingResponse: |
| 648 | + from .resources.inference import InferenceResourceWithStreamingResponse |
| 649 | + |
| 650 | + return InferenceResourceWithStreamingResponse(self._client.inference) |
| 651 | + |
652 | 652 | @cached_property |
653 | 653 | def models(self) -> models.ModelsResourceWithStreamingResponse: |
654 | 654 | from .resources.models import ModelsResourceWithStreamingResponse |
@@ -692,18 +692,18 @@ def knowledge_bases(self) -> knowledge_bases.AsyncKnowledgeBasesResourceWithStre |
692 | 692 |
|
693 | 693 | return AsyncKnowledgeBasesResourceWithStreamingResponse(self._client.knowledge_bases) |
694 | 694 |
|
695 | | - @cached_property |
696 | | - def api_keys(self) -> api_keys.AsyncAPIKeysResourceWithStreamingResponse: |
697 | | - from .resources.api_keys import AsyncAPIKeysResourceWithStreamingResponse |
698 | | - |
699 | | - return AsyncAPIKeysResourceWithStreamingResponse(self._client.api_keys) |
700 | | - |
701 | 695 | @cached_property |
702 | 696 | def chat(self) -> chat.AsyncChatResourceWithStreamingResponse: |
703 | 697 | from .resources.chat import AsyncChatResourceWithStreamingResponse |
704 | 698 |
|
705 | 699 | return AsyncChatResourceWithStreamingResponse(self._client.chat) |
706 | 700 |
|
| 701 | + @cached_property |
| 702 | + def inference(self) -> inference.AsyncInferenceResourceWithStreamingResponse: |
| 703 | + from .resources.inference import AsyncInferenceResourceWithStreamingResponse |
| 704 | + |
| 705 | + return AsyncInferenceResourceWithStreamingResponse(self._client.inference) |
| 706 | + |
707 | 707 | @cached_property |
708 | 708 | def models(self) -> models.AsyncModelsResourceWithStreamingResponse: |
709 | 709 | from .resources.models import AsyncModelsResourceWithStreamingResponse |
|
0 commit comments