Spaces:
Runtime error
Runtime error
fix: variable name
Browse files
app.py
CHANGED
|
@@ -13,7 +13,10 @@ MODEL_OPTIONS = {
|
|
| 13 |
EVALUATION_MODEL = "qwen/qwen3-32b:free"
|
| 14 |
|
| 15 |
#Load the open router api
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 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):
|