id function

Extract ID from OpenAI API response