Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -51,6 +51,10 @@ class ChatRequest(BaseModel):
|
|
51 |
class EmbeddingRequest(BaseModel):
|
52 |
input: str
|
53 |
model: str = "text-embedding-004"
|
|
|
|
|
|
|
|
|
54 |
|
55 |
|
56 |
async def verify_authorization(authorization: str = Header(None)):
|
|
|
51 |
class EmbeddingRequest(BaseModel):
|
52 |
input: str
|
53 |
model: str = "text-embedding-004"
|
54 |
+
model: str = "text-embedding-004"
|
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)):
|