Or rather from Panasonic. That's where Tesla get's its batteries from.
(Tesla financed the Gigafactory, but it is operated by Panasonic, and they previously bought their lithium-battery cells from Panasonic. This is according to Tesla's own 10-K filings [1,2]).