It seems quite clear that the Hebrews and Yahweh (or Elohim, actually) both believed there were multiple gods. Monotheism wasn’t their thing – at least not when Exodus was written.

As Karen Armstrong writes in “A History Of God”:

In the final text of Exodus, edited in the fifth century BCE, God is said to have made a covenant with Moses on Mount Sinai (an event which is supposed to have happened around 1200). There has been a scholarly debate about this: some critics believe that the covenant did not become important in Israel until the seventh century BCE. But whatever its date, the idea of the covenant tells us that the Israelites were not yet monotheists, since it only made sense in a polytheistic setting. The Israelites did not believe that Yahweh, the God of Sinai, was the only God but promised, in their covenant, that they would ignore all the other deities and worship him alone. It is very difficult to find a single monotheistic statement in the whole of the Pentateuch. Even the Ten Commandments delivered on Mount Sinai take the existence of other gods for granted: ‘There shall be no strange gods for you before my face.’