def partition_messages()

in aidial_adapter_vertexai/chat/bison/prompt.py [0:0]


    def partition_messages(self) -> List[int]:
        n = len(self.history)
        return (
            [1] * self.has_system_instruction
            + [2] * (n // 2)
            + [1] * (n % 2)
            + [1]
        )