From e00d9630c59a930427db2566a0b623851ff947be Mon Sep 17 00:00:00 2001 From: Teknium Date: Mon, 20 Apr 2026 20:49:49 -0700 Subject: [PATCH] fix: thread api_key through ollama num_ctx probe + author map Follow-up for salvaged PR #3185: - run_agent.py: pass self.api_key to query_ollama_num_ctx() so Ollama behind an auth proxy (same issue class as the LM Studio fix) can be probed successfully. - scripts/release.py AUTHOR_MAP: map @tannerfokkens-maker's local-hostname commit email. --- run_agent.py | 2 +- scripts/release.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/run_agent.py b/run_agent.py index d2a60c7f0..999b99629 100644 --- a/run_agent.py +++ b/run_agent.py @@ -1766,7 +1766,7 @@ class AIAgent: logger.debug("Invalid ollama_num_ctx config value: %r", _ollama_num_ctx_override) if self._ollama_num_ctx is None and self.base_url and is_local_endpoint(self.base_url): try: - _detected = query_ollama_num_ctx(self.model, self.base_url) + _detected = query_ollama_num_ctx(self.model, self.base_url, api_key=self.api_key or "") if _detected and _detected > 0: self._ollama_num_ctx = _detected except Exception as exc: diff --git a/scripts/release.py b/scripts/release.py index 6d8aef59d..c996464a5 100755 --- a/scripts/release.py +++ b/scripts/release.py @@ -293,6 +293,7 @@ AUTHOR_MAP = { "ywt000818@gmail.com": "OwenYWT", "dhandhalyabhavik@gmail.com": "v1k22", "rucchizhao@zhaochenfeideMacBook-Pro.local": "RucchiZ", + "tannerfokkens@Mac.attlocal.net": "tannerfokkens-maker", "lehaolin98@outlook.com": "LehaoLin", "yuewang1@microsoft.com": "imink", "1736355688@qq.com": "hedgeho9X",