diff --git a/openai/api_resources/customer.py b/openai/api_resources/customer.py index cb9779a2f1..8690d07b38 100644 --- a/openai/api_resources/customer.py +++ b/openai/api_resources/customer.py @@ -3,7 +3,7 @@ class Customer(OpenAIObject): @classmethod - def get_url(self, customer, endpoint): + def get_url(cls, customer, endpoint): return f"/customer/{customer}/{endpoint}" @classmethod diff --git a/openai/api_resources/moderation.py b/openai/api_resources/moderation.py index 4b8b58c6d9..bd19646b49 100644 --- a/openai/api_resources/moderation.py +++ b/openai/api_resources/moderation.py @@ -7,7 +7,7 @@ class Moderation(OpenAIObject): VALID_MODEL_NAMES: List[str] = ["text-moderation-stable", "text-moderation-latest"] @classmethod - def get_url(self): + def get_url(cls): return "/moderations" @classmethod