openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.57k stars 466 forks source link

Obtain token consumption with the Assistants API? #274

Closed absoluteweb closed 7 months ago

absoluteweb commented 7 months ago

Hi, Is there a way to retrieve token consumption from the API when using the Assistants API? Subsidiary question: do we know the default settings of the model we're using, since we can't enter them with the Assistants API (temperature, etc.)? Nicolas.

gehrisandro commented 7 months ago

Hi @absoluteweb

Currently there is no way (or at least I am not aware of it) to get the token usage on the Assistants API. You can see the usage in the webinterface.

The second question is out of scope of this library. Please ask this question in the community forum from OpenAI.