Xinglong Li

Results 3 comments of Xinglong Li

may be u can use `org.python.util.PythonInterpreter` to call the python tool: https://github.com/openai/tiktoken (of cource the performance is not good.)

the response also mention total token number: https://platform.openai.com/docs/api-reference/chat/create

> temp solution: run with > > -DsocksProxyHost=localhost -DsocksProxyPort=1080 it did't work for me, so i transform the socket5 proxy to http proxy, then use ` -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=1087 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=1087...