Update apis/chat_api.py
Browse files- apis/chat_api.py +0 -5
apis/chat_api.py
CHANGED
|
@@ -240,11 +240,6 @@ class ChatAPIApp:
|
|
| 240 |
include_in_schema=include_in_schema,
|
| 241 |
)(self.chat_completions)
|
| 242 |
|
| 243 |
-
if prefix in ["/v1"]:
|
| 244 |
-
include_in_schema = True
|
| 245 |
-
else:
|
| 246 |
-
include_in_schema = False
|
| 247 |
-
|
| 248 |
self.app.post(
|
| 249 |
prefix + "/embedding", # Use the specific prefix for this route
|
| 250 |
summary="Generate embeddings for the given texts",
|
|
|
|
| 240 |
include_in_schema=include_in_schema,
|
| 241 |
)(self.chat_completions)
|
| 242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
self.app.post(
|
| 244 |
prefix + "/embedding", # Use the specific prefix for this route
|
| 245 |
summary="Generate embeddings for the given texts",
|