OpenAI is in negotiations to raise up to $40 billion in a new funding round. The startup is valued at $340 billion, according to CNBC sources.