Closed ferstpetr777 closed 3 months ago
Hey, unfortunately, the current API request is not being saved in a table
Nazim Greetings! please tell me, maybe you have an idea how to analyze API activity to count bot tokens ?
You can add a check in the API handler for counting tokens. You can use the 'js-tiktoken' package
Nazim Afternoon! You know the code of this project very well. Can you please tell me the logic, how can you make it possible to intercept all incoming and outgoing messages to AI models by API open ai? To record them into a database for statistics.
Hey, I have added a new table for the API integration, similar to other integrations.
Great! Thank you ! as soon as we do all the statistics I will report back how we organized everything , as a basis we took meta base , it was suitable as a universal ready api gjl connectable to docker databases
Nazim good day ! Could you please tell me in which table the history of bot's messages is saved when there is a connection via bot's API ?