switched back to openrouter
Browse files
app.py
CHANGED
|
@@ -12,9 +12,9 @@ import modelscope_studio.components.pro as pro
|
|
| 12 |
load_dotenv()
|
| 13 |
|
| 14 |
# ---------- CONFIG ----------
|
| 15 |
-
API_KEY=os.getenv("
|
| 16 |
-
MODEL="
|
| 17 |
-
ENDPOINT ="https://
|
| 18 |
|
| 19 |
|
| 20 |
SYSTEM_PROMPT = """You are an expert on frontend design, you will always respond to web design tasks.
|
|
|
|
| 12 |
load_dotenv()
|
| 13 |
|
| 14 |
# ---------- CONFIG ----------
|
| 15 |
+
API_KEY=os.getenv("KEY") # <-- set this env var
|
| 16 |
+
MODEL="z-ai/glm-4.5-air:free" # change if you have a specific model on OpenRouter
|
| 17 |
+
ENDPOINT ="https://openrouter.ai/api/v1/chat/completions"
|
| 18 |
|
| 19 |
|
| 20 |
SYSTEM_PROMPT = """You are an expert on frontend design, you will always respond to web design tasks.
|