@@ -119,8 +119,8 @@ def __init__(
119119
120120 def profile (self ,
121121 content ,
122- accept ,
123- content_type = None ,
122+ content_type ,
123+ accept = None ,
124124 content_language = None ,
125125 accept_language = None ,
126126 raw_scores = None ,
@@ -165,11 +165,11 @@ def profile(self,
165165 service requires much less text; for more information, see [Providing sufficient
166166 input](/docs/services/personality-insights/input.html#sufficient). For JSON input,
167167 provide an object of type `Content`.
168- :param str accept: The type of the response. For more information, see **Accept
169- types** in the method description.
170168 :param str content_type: The type of the input. For more information, see
171169 **Content types** in the method description.
172170 Default: `text/plain`.
171+ :param str accept: The type of the response. For more information, see **Accept
172+ types** in the method description.
173173 :param str content_language: The language of the input text for the request:
174174 Arabic, English, Japanese, Korean, or Spanish. Regional variants are treated as
175175 their parent language; for example, `en-US` is interpreted as `en`.
@@ -200,8 +200,8 @@ def profile(self,
200200
201201 if content is None :
202202 raise ValueError ('content must be provided' )
203- if accept is None :
204- raise ValueError ('accept must be provided' )
203+ if content_type is None :
204+ raise ValueError ('content_type must be provided' )
205205 if isinstance (content , Content ):
206206 content = self ._convert_model (content , Content )
207207
0 commit comments