fix bug with openai token count
Just came here to report this. The current master (b6ba989) test_openai integration test is failing, and this should fix it! Thanks

![image](https://user-images.githubusercontent.com/35026793/226252291-02848627-0286-41a4-aedf-97a2b966d513.png)
