@cryptotaxi247 / CoPilot / commits / a52da838

fix: Update feature name in query parameters for SOCFORTRESS AI API request

Taylor committed Nov 14, 2024 at 08:10 UTC a52da83801bdf994ec55af927141507086de8623
1 file changed +1 -1
backend/app/threat_intel/services/socfortress.py
+1 -1
@@ -198,7 +198,7 @@ async def invoke_socfortress_ai_alert_api(
198 httpx.HTTPStatusError: If the API request fails with a non-successful status code.
199 """
200 headers = {"module-version": "1.0", "x-api-key": api_key}
201 - query_params = {"license_key": api_key, "feature_name": "AI"}
201 + query_params = {"license_key": api_key, "feature_name": "SOCFORTRESS AI"}
202 try:
203 async with httpx.AsyncClient(timeout=timeout) as client:
204 response = await client.post(url, params=query_params, json=request.dict(), headers=headers)