in aidial_adapter_openai/utils/truncate_prompt.py [0:0]
def truncate_prompt( messages: List[_T], message_tokens: Callable[[_T], int], is_system_message: Callable[[_T], bool], max_prompt_tokens: int, initial_prompt_tokens: int,