mirror of
https://github.com/Rarebuffalo/securelens-backend.git
synced 2026-06-19 07:00:30 +00:00
add support for custom AI api base url and Agent Router integrations
This commit is contained in:
@@ -57,6 +57,7 @@ class ReplContext:
|
||||
target_type: str # "code" | "web" | "github"
|
||||
api_key: str
|
||||
model: str
|
||||
api_base: Optional[str] = None
|
||||
conversation_history: list = field(default_factory=list)
|
||||
|
||||
|
||||
@@ -109,6 +110,7 @@ async def run_repl(ctx: ReplContext) -> None:
|
||||
model=ctx.model,
|
||||
temperature=0.5,
|
||||
conversation_history=ctx.conversation_history,
|
||||
api_base=ctx.api_base,
|
||||
)
|
||||
|
||||
if response:
|
||||
|
||||
Reference in New Issue
Block a user