pvanand commited on
Commit
4f7b7b0
·
verified ·
1 Parent(s): 64dbe75

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +19 -5
main.py CHANGED
@@ -279,11 +279,25 @@ async def text_to_speech(
279
  # ============================================================================
280
 
281
  class PresentationChatModel(BaseModel):
282
- prompt: str
283
- conversation_id: Optional[str] = None
284
- model_id: str
285
- user_id: str
286
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
  # Enum for output formats
288
  class OutputFormatEnum(str, Enum):
289
  html = "html"
 
279
  # ============================================================================
280
 
281
  class PresentationChatModel(BaseModel):
282
+ prompt: str = Field(..., description="User's query or prompt")
283
+ model_id: ModelID = Field(
284
+ default="openai/gpt-4o-mini",
285
+ description="ID of the model to use for response generation"
286
+ )
287
+ conversation_id: Optional[str] = Field(None, description="Unique identifier for the conversation")
288
+ user_id: str = Field(..., description="Unique identifier for the user")
289
+
290
+ class Config:
291
+ schema_extra = {
292
+ "example": {
293
+ "prompt": "Help me create a presentation for my healthy snacks startup",
294
+ "model_id": "openai/gpt-4o-mini",
295
+ "conversation_id": "123e4567-e89b-12d3-a456-426614174000",
296
+ "user_id": "user123"
297
+ }
298
+ }
299
+
300
+
301
  # Enum for output formats
302
  class OutputFormatEnum(str, Enum):
303
  html = "html"