I used to think I was smart. vs I used to think I am smart.

I used to think I was smart.
I used to think I am smart.

Could you guys please tell me the difference between these 2 sentences?

The second is odd. Native speakers regress the subordinated verb, especially with the verb ‘think’.