Commit 3208742

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-05-23 10:02:34
fix(typo): fix typo for `COLLAPSE_LENGTH`
1 parent fc3479d
Changed files (1)
src/config.py
@@ -214,7 +214,7 @@ class GPT:
     TOKEN_ENCODING = os.getenv("GPT_TOKEN_ENCODING", "o200k_base")  # https://github.com/openai/tiktoken/blob/main/tiktoken/model.py
     MAX_RETRY = int(os.getenv("GPT_MAX_RETRY", "2"))
     HELICONE_API_KEY = os.getenv("HELICONE_API_KEY", "")  # https://docs.helicone.ai/getting-started/integration-method/gateway
-    COLLAPSE_LENGTH = int(os.getenv("GEMINI_COLLAPSE_LENGTH", "500"))  # Collapse the response if the length is larger than this value
+    COLLAPSE_LENGTH = int(os.getenv("GPT_COLLAPSE_LENGTH", "500"))  # Collapse the response if the length is larger than this value
     # comma separated fallback models for OpenRouter (e.g. openai/gpt-4o,anthropic/claude-3.5-sonnet)
     OPENROUTER_FALLBACK_MODELS = os.getenv("GPT_OPENROUTER_FALLBACK_MODELS", "")