Update src/rag_engine.py
Browse files19 unmodified lines20212223242526272829303132333419 unmodified lines# ✅ OpenRouter LLM (Chat only)self.llm = ChatOpenAI(model="openai/gpt-oss-120b:free",temperature=0,openai_api_key=os.getenv("OPENROUTER_API_KEY"),openai_api_base="https://openrouter.ai/api/v1",default_headers={"HTTP-Referer": "http://localhost:8501","X-Title": "Project-RAG-App"})self.vector_store = None19 unmodified lines2021222324252627282930313233343536373839404119 unmodified lines# ✅ OpenRouter LLM (Chat only)self.llm = ChatOpenAI(model="openai/gpt-oss-120b:free",temperature=0,# ✅ CORRECT PARAMapi_key=os.getenv("OPENROUTER_API_KEY"),# ✅ OpenRouter endpointbase_url="https://openrouter.ai/api/v1",# ✅ REQUIRED HEADERS FOR OPENROUTERdefault_headers={"Authorization": f"Bearer {os.getenv('OPENROUTER_API_KEY')}","HTTP-Referer": "http://localhost:8501","X-Title": "Project-RAG-App"})self.vector_store = None
src/rag_engine.py+16-9