Spaces:
Sleeping
Sleeping
Commit
·
201f912
1
Parent(s):
24cb9ba
bug fix
Browse files
models.py
CHANGED
|
@@ -63,6 +63,12 @@ class NotionRequestBody(BaseModel):
|
|
| 63 |
generateTitle: bool = False
|
| 64 |
saveAllThreadOperations: bool = True
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
# Output Models (OpenAI SSE)
|
| 68 |
class ChoiceDelta(BaseModel):
|
|
|
|
| 63 |
generateTitle: bool = False
|
| 64 |
saveAllThreadOperations: bool = True
|
| 65 |
|
| 66 |
+
class Config:
|
| 67 |
+
# Ensure UUIDs are serialized as strings in the final JSON request
|
| 68 |
+
json_encoders = {
|
| 69 |
+
uuid.UUID: str
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
|
| 73 |
# Output Models (OpenAI SSE)
|
| 74 |
class ChoiceDelta(BaseModel):
|