Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|