* updated checkPromptType function to handle prompt list in completions * removed generated test file * added corresponding unit testcases * Updated to use less nesting with early returns
* removed handling for non-json response * added response body in RequestError.Error() and updated tests * done linting