Chandima Prabhath commited on
Commit
cb9e3eb
·
1 Parent(s): 8d28aeb

Fix OpenAI client initialization by setting the api_key to the environment variable

Browse files
Files changed (1) hide show
  1. polLLM.py +1 -1
polLLM.py CHANGED
@@ -32,7 +32,7 @@ class LLMBadRequestError(Exception):
32
  # --- OpenAI client init ---
33
  client = OpenAI(
34
  base_url="https://llm.chutes.ai/v1/",
35
- api_key=""
36
  )
37
 
38
  def _build_system_prompt() -> str:
 
32
  # --- OpenAI client init ---
33
  client = OpenAI(
34
  base_url="https://llm.chutes.ai/v1/",
35
+ api_key=_CHUTES_API_KEY
36
  )
37
 
38
  def _build_system_prompt() -> str: