Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -51,10 +51,7 @@ class ChatRequest(BaseModel):
|
|
51 |
class EmbeddingRequest(BaseModel):
|
52 |
input: str
|
53 |
model: str = "text-embedding-004"
|
54 |
-
|
55 |
-
encoding_format: Optional[str] = "base64"
|
56 |
-
dimensions: Optional[int]
|
57 |
-
user: Optional[str]
|
58 |
|
59 |
|
60 |
async def verify_authorization(authorization: str = Header(None)):
|
|
|
51 |
class EmbeddingRequest(BaseModel):
|
52 |
input: str
|
53 |
model: str = "text-embedding-004"
|
54 |
+
encoding_format: Optional[str] = "float"
|
|
|
|
|
|
|
55 |
|
56 |
|
57 |
async def verify_authorization(authorization: str = Header(None)):
|