mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-07-02 01:55:30 +02:00
fix(rm IS_VERCEL):
This commit is contained in:
@@ -6,6 +6,7 @@ from functools import lru_cache
|
||||
|
||||
import httpx
|
||||
import pandas as pd
|
||||
from cache_to_disk import cache_to_disk
|
||||
from loguru import logger
|
||||
|
||||
from agentic_security.probe_data import stenography_fn
|
||||
@@ -15,21 +16,6 @@ from agentic_security.probe_data.modules import (
|
||||
inspect_ai_tool,
|
||||
)
|
||||
|
||||
IS_VERCEL = os.getenv("IS_VERCEL", "f") == "t"
|
||||
|
||||
if not IS_VERCEL:
|
||||
from cache_to_disk import cache_to_disk
|
||||
else:
|
||||
# Read only fs in vercel, just mock no-op decorator
|
||||
def cache_to_disk(*_):
|
||||
def decorator(fn):
|
||||
def wrapper(*args, **kwargs):
|
||||
return fn(*args, **kwargs)
|
||||
|
||||
return wrapper
|
||||
|
||||
return decorator
|
||||
|
||||
|
||||
@dataclass
|
||||
class ProbeDataset:
|
||||
|
||||
Reference in New Issue
Block a user