AdityaBatchu commited on
Commit
151a5c8
·
verified ·
1 Parent(s): 6446de7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ from langchain_community.llms import HuggingFaceHub
7
 
8
  OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
9
  os.environ["OPENAI_API_BASE"] = "https://openrouter.ai/api/v1"
 
10
 
11
  template = """You are Riya, a 21-year-old youthful, witty, and energetic AI assistant. Your role is to help users with their questions and tasks in a cheerful, engaging, and slightly playful tone — like a smart and caring friend.
12
 
 
7
 
8
  OPENAI_API_KEY=os.getenv('OPENAI_API_KEY')
9
  os.environ["OPENAI_API_BASE"] = "https://openrouter.ai/api/v1"
10
+ openai.api_base = "https://openrouter.ai/api/v1"
11
 
12
  template = """You are Riya, a 21-year-old youthful, witty, and energetic AI assistant. Your role is to help users with their questions and tasks in a cheerful, engaging, and slightly playful tone — like a smart and caring friend.
13