Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ Rules:
|
|
| 34 |
llm = ChatOpenAI(
|
| 35 |
api_key=os.environ.get("OPENROUTER_API_KEY"),
|
| 36 |
base_url="https://openrouter.ai/api/v1", # <-- Point to OpenRouter instead of OpenAI
|
| 37 |
-
model="
|
| 38 |
temperature=0.5,
|
| 39 |
default_headers={
|
| 40 |
"HTTP-Referer": "http://localhost:7860", # Optional: Used by OpenRouter for app rankings
|
|
|
|
| 34 |
llm = ChatOpenAI(
|
| 35 |
api_key=os.environ.get("OPENROUTER_API_KEY"),
|
| 36 |
base_url="https://openrouter.ai/api/v1", # <-- Point to OpenRouter instead of OpenAI
|
| 37 |
+
model="z-ai/glm-4.5-air:free", # <-- Swap this with ANY model ID from OpenRouter
|
| 38 |
temperature=0.5,
|
| 39 |
default_headers={
|
| 40 |
"HTTP-Referer": "http://localhost:7860", # Optional: Used by OpenRouter for app rankings
|