[PR #11] [MERGED] ollama: honor OLLAMA_API_BASE and support remote Ollama host #16

Closed
opened 2026-02-27 13:59:15 -05:00 by yindo · 0 comments
Owner

📋 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: mainHead: ollama-fixes


📝 Commits (1)

  • fab6d5d ollama: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/GH05TCREW/pentestagent/pull/11 **Author:** [@giveen](https://github.com/giveen) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@GH05TCREW](https://github.com/GH05TCREW) **Base:** `main` ← **Head:** `ollama-fixes` --- ### 📝 Commits (1) - [`fab6d5d`](https://github.com/GH05TCREW/pentestagent/commit/fab6d5dc0f8e02b255005e771f5b9e80b197d7f2) ollama: honor OLLAMA_API_BASE and support remote Ollama host; add .env.example entry ### 📊 Changes **2 files changed** (+22 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+5 -0) 📝 `pentestagent/llm/llm.py` (+17 -0) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-27 13:59:15 -05:00
yindo closed this issue 2026-02-27 13:59:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yindo/pentestagent#16