ka1kuk commited on
Commit
6f97008
·
verified ·
1 Parent(s): d7a3299

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. 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.model, request.api_key)
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)