File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
* .egg-info
2
2
__pycache__
3
3
/public /dist
4
+ .idea
Original file line number Diff line number Diff line change 4
4
from openai .api_resources .error_object import ErrorObject
5
5
from openai .api_resources .event import Event
6
6
from openai .api_resources .file import File
7
+ from openai .api_resources .higherlevel import HigherLevel
7
8
from openai .api_resources .plan import Plan
8
9
from openai .api_resources .run import Run
9
10
from openai .api_resources .snapshot import Snapshot
Original file line number Diff line number Diff line change
1
+ from openai .api_resources .abstract .engine_api_resource import EngineAPIResource
2
+
3
+
4
+ class HigherLevel (EngineAPIResource ):
5
+ api_prefix = "higherlevel"
6
+
7
+ def get_url (self , base ):
8
+ return "/%s/%ss" % (self .api_prefix , base )
9
+
10
+ def classification (self , ** params ):
11
+ return self .request ("post" , self .get_url ("classification" ), params )
12
+
13
+ def answer (self , ** params ):
14
+ return self .request ("post" , self .get_url ("answer" ), params )
You can’t perform that action at this time.
0 commit comments