forked from openai/openai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_module_client.py
More file actions
85 lines (59 loc) · 2.46 KB
/
Copy path_module_client.py
File metadata and controls
85 lines (59 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing_extensions import override
from . import resources, _load_client
from ._utils import LazyProxy
class ChatProxy(LazyProxy[resources.Chat]):
@override
def __load__(self) -> resources.Chat:
return _load_client().chat
class BetaProxy(LazyProxy[resources.Beta]):
@override
def __load__(self) -> resources.Beta:
return _load_client().beta
class FilesProxy(LazyProxy[resources.Files]):
@override
def __load__(self) -> resources.Files:
return _load_client().files
class AudioProxy(LazyProxy[resources.Audio]):
@override
def __load__(self) -> resources.Audio:
return _load_client().audio
class ImagesProxy(LazyProxy[resources.Images]):
@override
def __load__(self) -> resources.Images:
return _load_client().images
class ModelsProxy(LazyProxy[resources.Models]):
@override
def __load__(self) -> resources.Models:
return _load_client().models
class BatchesProxy(LazyProxy[resources.Batches]):
@override
def __load__(self) -> resources.Batches:
return _load_client().batches
class EmbeddingsProxy(LazyProxy[resources.Embeddings]):
@override
def __load__(self) -> resources.Embeddings:
return _load_client().embeddings
class CompletionsProxy(LazyProxy[resources.Completions]):
@override
def __load__(self) -> resources.Completions:
return _load_client().completions
class ModerationsProxy(LazyProxy[resources.Moderations]):
@override
def __load__(self) -> resources.Moderations:
return _load_client().moderations
class FineTuningProxy(LazyProxy[resources.FineTuning]):
@override
def __load__(self) -> resources.FineTuning:
return _load_client().fine_tuning
chat: resources.Chat = ChatProxy().__as_proxied__()
beta: resources.Beta = BetaProxy().__as_proxied__()
files: resources.Files = FilesProxy().__as_proxied__()
audio: resources.Audio = AudioProxy().__as_proxied__()
images: resources.Images = ImagesProxy().__as_proxied__()
models: resources.Models = ModelsProxy().__as_proxied__()
batches: resources.Batches = BatchesProxy().__as_proxied__()
embeddings: resources.Embeddings = EmbeddingsProxy().__as_proxied__()
completions: resources.Completions = CompletionsProxy().__as_proxied__()
moderations: resources.Moderations = ModerationsProxy().__as_proxied__()
fine_tuning: resources.FineTuning = FineTuningProxy().__as_proxied__()