Update apis/chat_api.py
Browse files- apis/chat_api.py +1 -1
apis/chat_api.py
CHANGED
@@ -206,7 +206,7 @@ class ChatAPIApp:
|
|
206 |
try:
|
207 |
for attempt in range(3): # Retry logic
|
208 |
try:
|
209 |
-
embeddings = await self.chat_embedding(request.texts, request.
|
210 |
data = [
|
211 |
{"object": "embedding", "index": i, "embedding": embedding}
|
212 |
for i, embedding in enumerate(embeddings)
|
|
|
206 |
try:
|
207 |
for attempt in range(3): # Retry logic
|
208 |
try:
|
209 |
+
embeddings = await self.chat_embedding(request.texts, request.model_name, request.api_key)
|
210 |
data = [
|
211 |
{"object": "embedding", "index": i, "embedding": embedding}
|
212 |
for i, embedding in enumerate(embeddings)
|