Assert.notNull(embeddingRequest,"The request body can not be null.");
Assert.notNull(embeddingRequest.input(),"The input can not be null.");
Assert.isTrue(embeddingRequest.input()instanceofString||embeddingRequest.input()instanceofList,"The input must be either a String, or a List of Strings or List of List of integers.");
Objectvar3=embeddingRequest.input();
if(var3instanceofListlist){
Assert.isTrue(!CollectionUtils.isEmpty(list),"The input list can not be empty.");
Assert.isTrue(list.size()<=2048,"The list must be 2048 dimensions or less");
Assert.isTrue(list.get(0)instanceofString||list.get(0)instanceofInteger||list.get(0)instanceofList,"The input must be either a String, or a List of Strings or list of list of integers.");