rohitkhadka commited on
Commit
66500dc
·
verified ·
1 Parent(s): a1595c5

fix: variable name

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -13,7 +13,10 @@ MODEL_OPTIONS = {
13
  EVALUATION_MODEL = "qwen/qwen3-32b:free"
14
 
15
  #Load the open router api
16
- OPENROUTERAI_API_KEY = os.getenv("OPENROUTERAI")
 
 
 
17
 
18
  # API query function
19
  def query_openrouter(prompt, model_id):
 
13
  EVALUATION_MODEL = "qwen/qwen3-32b:free"
14
 
15
  #Load the open router api
16
+ OPENROUTER_API_KEY = os.getenv("OPENROUTERAI")
17
+ if not OPENROUTER_API_KEY:
18
+ raise RuntimeError("Missing OpenRouter API key. Please set OPENROUTERAI in your environment variables.")
19
+
20
 
21
  # API query function
22
  def query_openrouter(prompt, model_id):