updates cost tracking code - replace `completion_response` with `response_obj` - add `import logging`