mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-07-25 02:35:23 -04:00
[PR #11] [MERGED] ollama: honor OLLAMA_API_BASE and support remote Ollama host #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/GH05TCREW/pentestagent/pull/11
Author: @giveen
Created: 1/8/2026
Status: ✅ Merged
Merged: 1/9/2026
Merged by: @GH05TCREW
Base:
main← Head:ollama-fixes📝 Commits (1)
fab6d5dollama: honor OLLAMA_API_BASE and support remote Ollama host; add .env.example entry📊 Changes
2 files changed (+22 additions, -0 deletions)
View changed files
📝
.env.example(+5 -0)📝
pentestagent/llm/llm.py(+17 -0)📄 Description
Map OLLAMA_BASE_URL/OLLAMA_URL into litellm-friendly env vars so a remote Ollama host can be used; add example to .env.example. Tested by exporting OLLAMA_API_BASE and calling the LLM wrapper — litellm connects to remote host. Branch: giveen:ollama-fixes.\n\nThis PR keeps behavior unchanged when env vars are absent and only sets env vars if a user-provided base URL exists.\n
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.