ciyidogan commited on
Commit
ae9f986
Β·
verified Β·
1 Parent(s): 9105c66

Update chat_handler.py

Browse files
Files changed (1) hide show
  1. chat_handler.py +4 -4
chat_handler.py CHANGED
@@ -198,16 +198,16 @@ async def _execute_api_call(session: Session, intent_config) -> str:
198
  return intent_config.fallback_error_prompt or "İşlem sΔ±rasΔ±nda bir hata oluştu."
199
 
200
  # ───────────────────────── REQUEST MODELS ───────────────────────── #
201
- class SessionRequest(BaseModel):
202
- project_name: str
203
- test_mode: bool = False
204
-
205
  class ChatRequest(BaseModel):
206
  message: str
207
 
208
  class StartRequest(BaseModel):
209
  project_name: str
210
  version_number: Optional[int] = None # Opsiyonel, belirtilmezse published olan en bΓΌyΓΌk version no'yu kullan
 
 
 
 
211
 
212
  # ───────────────────────── API ENDPOINTS ───────────────────────── #
213
  @router.post("/start_session", response_model=ChatResponse)
 
198
  return intent_config.fallback_error_prompt or "İşlem sΔ±rasΔ±nda bir hata oluştu."
199
 
200
  # ───────────────────────── REQUEST MODELS ───────────────────────── #
 
 
 
 
201
  class ChatRequest(BaseModel):
202
  message: str
203
 
204
  class StartRequest(BaseModel):
205
  project_name: str
206
  version_number: Optional[int] = None # Opsiyonel, belirtilmezse published olan en bΓΌyΓΌk version no'yu kullan
207
+
208
+ class ChatResponse(BaseModel):
209
+ session_id: str
210
+ answer: str
211
 
212
  # ───────────────────────── API ENDPOINTS ───────────────────────── #
213
  @router.post("/start_session", response_model=ChatResponse)