When I am training my model with Anthropic llm, it is giving this error:
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True’.
ERROR:root:LiteLLM call failed: litellm.BadRequestError: AnthropicException - Invalid first message=[]. Should always start with ‘role’=‘user’ for Anthropic. System prompt is sent separately for Anthropic. set ‘litellm.modify_params = True’ or ‘litellm_settings:modify_params = True’ on proxy, to insert a placeholder user message - ‘.’ as the first message,
Received Messages=[]
- Error during LLM call to classify human feedback: litellm.BadRequestError: AnthropicException - Invalid first message=. Should always start with ‘role’=‘user’ for Anthropic. System prompt is sent separately for Anthropic. set ‘litellm.modify_params = True’ or ‘litellm_settings:modify_params = True’ on proxy, to insert a placeholder user message - ‘.’ as the first message,*
Received Messages=[]. Retrying… (1/3)
But when I am training my model using some other llm, then it is training fine.
So please anyone help me bcz I have only anthropic API as a good model.