API token tracking per key & dynamic file syncing in Assistants API
Hi everyone! 👋 I’m looking for some advice on optimizing my OpenAI API workflow and would appreciate your insights on two specific issues. Question 1: Tracking Token Usage per API Key How can I accurately track token consumption for each specific API key? Is there a built-in dashboard feature to see exactly how many tokens a single key is burning daily, or does this require a custom logging setup? Question 2: Dynamic File Updates for Assistants I’m using the Assistants API (platform.openai.com/assistants/) but facing a bottleneck with File Search. I frequently need to make minor, real-time edits to the reference documents. What is the current best practice/pipeline for this? Are there any out-of-the-box tools or integrations for seamless syncing (e.g., editing a Google Doc and having it auto-update in the Vector Store)? Or is the only viable route to write a custom script that triggers the deletion of the old Document ID and pushes the new one? Thanks in advance for the help! Pavel