Conversation so far:
Who were the librettists?
CANNOTANSWER.
What did they do?
He was highly demanding and bad-tempered, unable to maintain longstanding partnerships with his librettists, with the exception of Louis de Cahusac.

Question: How long was Louis with him?
Self-contained rewrite: How long was Louis with Jean-Philippe Rameau?