openai/openai-python

Public

mirrored from https://github.com/openai/openai-pythonAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.22.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

openai/api_resources/classification.py

12lines · modecode

1from openai.openai_object import OpenAIObject
2
3
4class Classification(OpenAIObject):
5 @classmethod
6 def get_url(self):
7 return "/classifications"
8
9 @classmethod
10 def create(cls, **params):
11 instance = cls()
12 return instance.request("post", cls.get_url(), params)
13