nlxcaptcha
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: nlxcaptcha | ||
| Version: 1.9 | ||
| Version: 2.0 | ||
| Summary: Tell "iPad Kids" and "Non-iPad Kids" apart using OpenAI API in this easy-to-integrate captcha. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/nlckysolutions/NLX-Captcha |
@@ -10,3 +10,3 @@ import tkinter as tk | ||
| class NLXCaptcha: | ||
| def __init__(self, api_key, difficulty): | ||
| def __init__(self, api_key, difficulty, model): | ||
| self.api_key = api_key | ||
@@ -17,2 +17,3 @@ self.difficulty = difficulty | ||
| self.result = None | ||
| self.model = model | ||
@@ -78,3 +79,3 @@ def detect_device(self): | ||
| response = openai.ChatCompletion.create( | ||
| model="gpt-4", | ||
| model=self.model, | ||
| messages=[ | ||
@@ -99,4 +100,4 @@ {"role": "system", "content": system_prompt}, | ||
| def verify(difficulty, openaiapikey): | ||
| captcha = NLXCaptcha(api_key=openaiapikey, difficulty=difficulty) | ||
| def verify(difficulty, openaiapikey, model): | ||
| captcha = NLXCaptcha(api_key=openaiapikey, difficulty=difficulty, model=model) | ||
| captcha.start_verification() | ||
@@ -103,0 +104,0 @@ |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: nlxcaptcha | ||
| Version: 1.9 | ||
| Version: 2.0 | ||
| Summary: Tell "iPad Kids" and "Non-iPad Kids" apart using OpenAI API in this easy-to-integrate captcha. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/nlckysolutions/NLX-Captcha |
+1
-1
@@ -5,3 +5,3 @@ from setuptools import setup, find_packages | ||
| name='nlxcaptcha', | ||
| version='1.9', | ||
| version='2.0', | ||
| packages=find_packages(), | ||
@@ -8,0 +8,0 @@ install_requires=[ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
7857
0.74%106
0.95%