mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-15 20:05:58 +00:00
make ai follow-up suggestions optional (#3591)
This commit is contained in:
@@ -135,6 +135,8 @@ async def generate_suggestions(
|
||||
request: Request,
|
||||
config: AppConfig = Depends(get_config),
|
||||
) -> SuggestionsResponse:
|
||||
if not config.suggestions.enabled:
|
||||
return SuggestionsResponse(suggestions=[])
|
||||
if not body.messages:
|
||||
return SuggestionsResponse(suggestions=[])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user