#27454 [Bug]: 'function' is a required property, expected an object - 'tools.7'
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### What happened?
Can not use litellm with codex which is already signed in with openai account.
### Steps to Reproduce
1. install codex and sign in with ChatGPT plus subscription, then the `.codex/auth.json` will have `"auth_mode": "chatgpt"`, or you can just use this dummy auth.json, which does not really matter ``` { "auth_mode": "chatgpt", "OPENAI_API_KEY": null, "tokens": { "id_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhbXIiOlsicHdkIiwib3RwIiwibWZhIiwidXJuOm9wZW5haTphbXI6b3RwX2VtYWlsIl0sImF0X2hhc2giOiJ2QWJNay0zM1ZCdTgtak1felp1S093IiwiYXVkIjpbImFwcF9FTW9hbUVFWjczZjBDa1hhWHA3aHJhbm4iXSwiYXV0aF9wcm92aWRlciI6InBhc3N3b3JkIiwiYXV0aF90aW1lIjoxNzc3NDI2OTM3LCJlbWFpbCI6Inh4eHh4eHh4eHh4eHh4eCIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJleHAiOjE3Nzc0MzA1MzksImh0dHBzOi8vYXBpLm9wZW5haS5jb20vYXV0aCI6eyJjaGF0Z3B0X2FjY291bnRfaWQiOiIxOWNhY2RiOC00OTk3LTQyM2EtOWVkOS0xNzdkOTRlMmFkOWMiLCJjaGF0Z3B0X3BsYW5fdHlwZSI6InBsdXMiLCJjaGF0Z3B0X3N1YnNjcmlwdGlvbl9hY3RpdmVfc3RhcnQiOiIyMDI2LTA0LTEzVDE0OjIxOjUwKzAwOjAwIiwiY2hhdGdwdF9zdWJzY3JpcHRpb25fYWN0aXZlX3VudGlsIjoiMjAyNi0wNS0xM1QxND…