Spaces:
Paused
Paused
MEOW commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ 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}/chat/completions"
|
| 21 |
|
| 22 |
# Custom embedding class for xAI
|
|
|
|
| 16 |
|
| 17 |
# Construct specific endpoints
|
| 18 |
XAI_API_KEY = os.getenv('XAI_API_KEY')
|
| 19 |
+
XAI_API_URL_EMBEDDINGS = f"{XAI_API_BASE}/embedding-models/{model_id}"
|
| 20 |
XAI_API_URL_CHAT_COMPLETIONS = f"{XAI_API_BASE}/chat/completions"
|
| 21 |
|
| 22 |
# Custom embedding class for xAI
|