Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion threat_analysis/ai_engine/providers/litellm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ async def check_connection(self) -> bool:
timeout=self.provider_config.get('timeout', 10),
stream=False,
api_base=self.api_base,
enable_thinking=False,
)
logging.info("[%.3fs] AI health check OK — %s", time.time() - check_start_time, self.model_name)
self.ai_online = True
Expand Down Expand Up @@ -223,7 +224,8 @@ async def generate_content(self, prompt: str, system_prompt: str, stream: Option
"max_tokens": effective_max_tokens,
"timeout": effective_timeout,
"num_retries": int(self.ai_config.get("threat_generation", {}).get("num_retries", 3)),
"api_base": self.api_base
"api_base": self.api_base,
"enable_thinking": False,
}
if "top_p" in self.provider_config:
completion_params["top_p"] = self.provider_config["top_p"]
Expand Down
Loading