create_gpt_chat_completion
Constructs the payload sent to our LLM endpoint given a list of messages (traditional role/content object), the project details, and function calls to be included.
Constructs a function call message using add_function_calls_to_request.
Contains some branching on how to handle payload construction based on whether or not its hitting an OpenAI API compliant endpoint, or anthropic.