Remove missing user message check for REMOTE_API_KEY (#11164)

This commit is contained in:
Robert Brennan
2025-09-28 20:57:04 -04:00
committed by GitHub
parent a1b81fe923
commit d4e94b32e1

View File

@@ -226,19 +226,6 @@ async def new_conversation(
if auth_type == AuthType.BEARER:
conversation_trigger = ConversationTrigger.REMOTE_API_KEY
if (
conversation_trigger == ConversationTrigger.REMOTE_API_KEY
and not initial_user_msg
):
return JSONResponse(
content={
'status': 'error',
'message': 'Missing initial user message',
'msg_id': 'CONFIGURATION$MISSING_USER_MESSAGE',
},
status_code=status.HTTP_400_BAD_REQUEST,
)
try:
if repository:
provider_handler = ProviderHandler(provider_tokens)