OpenAI has reached a deal with the Pentagon over the use of its AI models, CEO Sam Altman announced late Friday.