MEOW commited on
Commit
f458ab7
·
unverified ·
1 Parent(s): 76ceb80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}/embeddings"
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