| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
- from __future__ import annotations
- from typing import TYPE_CHECKING
- from typing_extensions import override
- if TYPE_CHECKING:
- from .resources.files import Files
- from .resources.images import Images
- from .resources.models import Models
- from .resources.videos import Videos
- from .resources.batches import Batches
- from .resources.webhooks import Webhooks
- from .resources.beta.beta import Beta
- from .resources.chat.chat import Chat
- from .resources.embeddings import Embeddings
- from .resources.audio.audio import Audio
- from .resources.completions import Completions
- from .resources.evals.evals import Evals
- from .resources.moderations import Moderations
- from .resources.uploads.uploads import Uploads
- from .resources.realtime.realtime import Realtime
- from .resources.responses.responses import Responses
- from .resources.containers.containers import Containers
- from .resources.fine_tuning.fine_tuning import FineTuning
- from .resources.conversations.conversations import Conversations
- from .resources.vector_stores.vector_stores import VectorStores
- from . import _load_client
- from ._utils import LazyProxy
- class ChatProxy(LazyProxy["Chat"]):
- @override
- def __load__(self) -> Chat:
- return _load_client().chat
- class BetaProxy(LazyProxy["Beta"]):
- @override
- def __load__(self) -> Beta:
- return _load_client().beta
- class FilesProxy(LazyProxy["Files"]):
- @override
- def __load__(self) -> Files:
- return _load_client().files
- class AudioProxy(LazyProxy["Audio"]):
- @override
- def __load__(self) -> Audio:
- return _load_client().audio
- class EvalsProxy(LazyProxy["Evals"]):
- @override
- def __load__(self) -> Evals:
- return _load_client().evals
- class ImagesProxy(LazyProxy["Images"]):
- @override
- def __load__(self) -> Images:
- return _load_client().images
- class ModelsProxy(LazyProxy["Models"]):
- @override
- def __load__(self) -> Models:
- return _load_client().models
- class VideosProxy(LazyProxy["Videos"]):
- @override
- def __load__(self) -> Videos:
- return _load_client().videos
- class BatchesProxy(LazyProxy["Batches"]):
- @override
- def __load__(self) -> Batches:
- return _load_client().batches
- class UploadsProxy(LazyProxy["Uploads"]):
- @override
- def __load__(self) -> Uploads:
- return _load_client().uploads
- class WebhooksProxy(LazyProxy["Webhooks"]):
- @override
- def __load__(self) -> Webhooks:
- return _load_client().webhooks
- class RealtimeProxy(LazyProxy["Realtime"]):
- @override
- def __load__(self) -> Realtime:
- return _load_client().realtime
- class ResponsesProxy(LazyProxy["Responses"]):
- @override
- def __load__(self) -> Responses:
- return _load_client().responses
- class EmbeddingsProxy(LazyProxy["Embeddings"]):
- @override
- def __load__(self) -> Embeddings:
- return _load_client().embeddings
- class ContainersProxy(LazyProxy["Containers"]):
- @override
- def __load__(self) -> Containers:
- return _load_client().containers
- class CompletionsProxy(LazyProxy["Completions"]):
- @override
- def __load__(self) -> Completions:
- return _load_client().completions
- class ModerationsProxy(LazyProxy["Moderations"]):
- @override
- def __load__(self) -> Moderations:
- return _load_client().moderations
- class FineTuningProxy(LazyProxy["FineTuning"]):
- @override
- def __load__(self) -> FineTuning:
- return _load_client().fine_tuning
- class VectorStoresProxy(LazyProxy["VectorStores"]):
- @override
- def __load__(self) -> VectorStores:
- return _load_client().vector_stores
- class ConversationsProxy(LazyProxy["Conversations"]):
- @override
- def __load__(self) -> Conversations:
- return _load_client().conversations
- chat: Chat = ChatProxy().__as_proxied__()
- beta: Beta = BetaProxy().__as_proxied__()
- files: Files = FilesProxy().__as_proxied__()
- audio: Audio = AudioProxy().__as_proxied__()
- evals: Evals = EvalsProxy().__as_proxied__()
- images: Images = ImagesProxy().__as_proxied__()
- models: Models = ModelsProxy().__as_proxied__()
- videos: Videos = VideosProxy().__as_proxied__()
- batches: Batches = BatchesProxy().__as_proxied__()
- uploads: Uploads = UploadsProxy().__as_proxied__()
- webhooks: Webhooks = WebhooksProxy().__as_proxied__()
- realtime: Realtime = RealtimeProxy().__as_proxied__()
- responses: Responses = ResponsesProxy().__as_proxied__()
- embeddings: Embeddings = EmbeddingsProxy().__as_proxied__()
- containers: Containers = ContainersProxy().__as_proxied__()
- completions: Completions = CompletionsProxy().__as_proxied__()
- moderations: Moderations = ModerationsProxy().__as_proxied__()
- fine_tuning: FineTuning = FineTuningProxy().__as_proxied__()
- vector_stores: VectorStores = VectorStoresProxy().__as_proxied__()
- conversations: Conversations = ConversationsProxy().__as_proxied__()
|