From df8d8fb7411ab9694426ad6d1f00e642fbfd28e4 Mon Sep 17 00:00:00 2001 From: Miyamura80 Date: Mon, 26 Jan 2026 14:39:18 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20remove=20Helicone=20proxy=20inte?= =?UTF-8?q?gration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove unused api_base() method that returned Helicone proxy URLs. The method was never called anywhere in the codebase. Co-Authored-By: Claude Opus 4.5 --- common/global_config.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/common/global_config.py b/common/global_config.py index b3e6080..b7f0e06 100644 --- a/common/global_config.py +++ b/common/global_config.py @@ -253,23 +253,6 @@ def llm_api_key(self, model_name: str | None = None) -> str: return api_keys[provider] raise ValueError(f"No API key configured for model: {model_identifier}") - def api_base(self, model_name: str) -> str: - """Returns the Helicone link for the model. - - Raises: - ValueError: If no API base is configured for the given model. - """ - provider = self._identify_provider(model_name) - api_bases = { - "openai": "https://oai.hconeai.com/v1", - "groq": "https://groq.helicone.ai/openai/v1", - "perplexity": "https://perplexity.helicone.ai", - "gemini": "https://generativelanguage.googleapis.com/v1beta/openai/", - } - if provider in api_bases: - return api_bases[provider] - raise ValueError(f"No API base configured for model: {model_name}") - # Load .env files before creating the config instance # Load .env file first, to get DEV_ENV if it's defined there