File tree 2 files changed +27
-1
lines changed
2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 3
3
from __future__ import annotations
4
4
5
5
import os as _os
6
+ import typing as _t
6
7
from typing_extensions import override
7
8
8
9
from . import types
35
36
from ._utils ._logs import setup_logging as _setup_logging
36
37
from ._legacy_response import HttpxBinaryResponseContent as HttpxBinaryResponseContent
37
38
39
+ if not _t .TYPE_CHECKING :
40
+ from ._resources_proxy import resources as resources
41
+
38
42
__all__ = [
39
43
"types" ,
40
44
"__version__" ,
103
107
pass
104
108
105
109
# ------ Module level client ------
106
- import typing as _t
107
110
import typing_extensions as _te
108
111
109
112
import httpx as _httpx
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
3
+ from typing import Any
4
+ from typing_extensions import override
5
+
6
+ from ._utils import LazyProxy
7
+
8
+
9
+ class ResourcesProxy (LazyProxy [Any ]):
10
+ _loaded = None
11
+
12
+ @override
13
+ def __load__ (self ) -> Any :
14
+ if self ._loaded is not None :
15
+ return self ._loaded
16
+
17
+ import importlib
18
+ mod = importlib .import_module ('openai.resources' )
19
+ self ._loaded = mod
20
+ return mod
21
+
22
+
23
+ resources = ResourcesProxy ().__as_proxied__ ()
You can’t perform that action at this time.
0 commit comments