Chat completion API giving wrong answer

Tried this dozens of times

Fully formatted example, no function calling: