Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,16 +73,7 @@ class KnowledgeBase:
|
|
| 73 |
# ============================================
|
| 74 |
# OPENROUTER CLIENT
|
| 75 |
# ============================================
|
| 76 |
-
|
| 77 |
-
def __init__(self, api_key):
|
| 78 |
-
self.client = OpenAI(
|
| 79 |
-
base_url="https://openrouter.ai/api/v1",
|
| 80 |
-
api_key=api_key,
|
| 81 |
-
default_headers={
|
| 82 |
-
"HTTP-Referer": "https://edstellar.com",
|
| 83 |
-
"X-Title": "Edstellar Internal Linking Tool"
|
| 84 |
-
}
|
| 85 |
-
)
|
| 86 |
|
| 87 |
def get_embedding(self, text):
|
| 88 |
"""Get embedding vector"""
|
|
|
|
| 73 |
# ============================================
|
| 74 |
# OPENROUTER CLIENT
|
| 75 |
# ============================================
|
| 76 |
+
undefined
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
def get_embedding(self, text):
|
| 79 |
"""Get embedding vector"""
|