File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 11* .egg-info
22__pycache__
33/public /dist
4+ .idea
Original file line number Diff line number Diff line change 44from openai .api_resources .error_object import ErrorObject
55from openai .api_resources .event import Event
66from openai .api_resources .file import File
7+ from openai .api_resources .higherlevel import HigherLevel
78from openai .api_resources .plan import Plan
89from openai .api_resources .run import Run
910from 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