Skip to content

Commit

Permalink
[fix] change providers_params -> provider_param
Browse files Browse the repository at this point in the history
  • Loading branch information
coscialp committed Dec 18, 2023
1 parent 229e497 commit ba6f0e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions edenai_apis/apis/winstonai/winstonai_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ def __init__(self, api_keys: Optional[Dict[str, Any]] = None):
}

def text__ai_detection(
self, text: str, providers_params: Optional[Dict[str, Any]] = None
self, text: str, provider_params: Optional[Dict[str, Any]] = None
) -> ResponseType[AiDetectionDataClass]:
if providers_params is None:
providers_params = {}
if provider_params is None:
provider_params = {}
payload = json.dumps(
{
"text": text,
"sentences": True,
"language": providers_params.get("language", "en"),
"version": providers_params.get("version", "2.0"),
"language": provider_params.get("language", "en"),
"version": provider_params.get("version", "2.0"),
}
)

Expand Down

0 comments on commit ba6f0e8

Please sign in to comment.