mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
make securelens show usage when run with no subcommand and pass api_base in scan triage and analysis
This commit is contained in:
@@ -70,9 +70,10 @@ async def call_ai_json(
|
||||
api_key: str,
|
||||
model: str,
|
||||
temperature: float = 0.2,
|
||||
api_base: Optional[str] = None,
|
||||
) -> Optional[dict]:
|
||||
"""Convenience wrapper — calls AI in JSON mode and parses the result."""
|
||||
raw = await call_ai(prompt, api_key, model, temperature=temperature, json_mode=True)
|
||||
raw = await call_ai(prompt, api_key, model, temperature=temperature, json_mode=True, api_base=api_base)
|
||||
if not raw:
|
||||
return None
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user