Spaces:
Runtime error
Runtime error
Update app/backend.py
Browse files14 unmodified lines151617181819202136 unmodified lines5859606162636414 unmodified linesembedding_model = SentenceTransformer("models/all-MiniLM-L6-v2")
# ✅ Model name for OpenRouter (DeepSeek)MODEL_NAME = "deepseek/deepseek-r1-0528:free"MODEL_NAME = "z-ai/glm-4.5-air:free"
# ✅ API key (you can load from environment for safety)OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY", "sk-or-...") # fallback36 unmodified lines- Provide full context (e.g., duration, limits, eligibility, exclusions).- Use domain-specific language and proper structure (as in insurance policy).- If the information is not found, respond with: "Sorry, I couldn't find that information."- give in one sentence.
<context>{context}app/backend.py+2-1