Spaces:
Paused
Paused
MEOW commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,8 @@ XAI_API_BASE = "https://api.x.ai/v1"
|
|
| 16 |
|
| 17 |
# Construct specific endpoints
|
| 18 |
XAI_API_KEY = os.getenv('XAI_API_KEY')
|
| 19 |
-
XAI_API_URL_EMBEDDINGS = f"{XAI_API_BASE}
|
| 20 |
-
XAI_API_URL_CHAT_COMPLETIONS = f"{XAI_API_BASE}
|
| 21 |
|
| 22 |
# Custom embedding class for xAI
|
| 23 |
class XAIEmbedding:
|
|
|
|
| 16 |
|
| 17 |
# Construct specific endpoints
|
| 18 |
XAI_API_KEY = os.getenv('XAI_API_KEY')
|
| 19 |
+
XAI_API_URL_EMBEDDINGS = f"{XAI_API_BASE}/embeddings"
|
| 20 |
+
XAI_API_URL_CHAT_COMPLETIONS = f"{XAI_API_BASE}/chat/completions"
|
| 21 |
|
| 22 |
# Custom embedding class for xAI
|
| 23 |
class XAIEmbedding:
|