Releases: LAVARONG/captchaGPT
Releases · LAVARONG/captchaGPT
v1.0.0
配置
将 .env.example 复制为 .env,填入以下两个必填项:
NVIDIA_API_KEY=你的_NVIDIA_API_KEY
USER_API_KEY=你提供给调用方的服务密钥启动服务
Windows
双击 start.bat,或在终端执行:
.\start.batLinux
chmod +x ./captchaGPT
./captchaGPT启动成功后,服务默认监听 http://127.0.0.1:8080。
调用示例
smoke-test 脚本(推荐)
Release 包中附带了 smoke-test.ps1 和 sample.png,这是最简单的测试方式:
powershell -ExecutionPolicy Bypass -File .\smoke-test.ps1 -ImagePath .\sample.png -ApiKey your-user-key脚本会自动读取图片、转换 Base64、发送请求并输出结果。
如果服务不在本机:
powershell -ExecutionPolicy Bypass -File .\smoke-test.ps1 -ImagePath .\sample.png -BaseUrl http://192.168.1.10:8080 -ApiKey your-user-key如果是算术验证码,比如 20-18=? 或 “九乘六等于?”,可以直接使用发布包里的 math_sample.png 来测:
powershell -ExecutionPolicy Bypass -File .\smoke-test.ps1 -ImagePath .\math_sample.png -ApiKey your-user-key -Task math