API assistant is using over 15k tokens

we are building a basic answer system via gpt 4o mini and for some reason every command run uses over 15k tokens. when we remove instructions/files for the ai it just increases the token usage??

if somebody could help us it would be greatly appriciated, Thanks in advance
Dericom.

1 Like

Welcome to the forum @Dericom

Does this increase in usage happens in new thread or the existing thread?

1 Like

in new threads as well as in used threads

How long is the instructions param for your assistant?

exactly 422 token in tokenizer

Do you have any functions defined on the assistant?

Also are the 15k tokens for in or out?

1 Like

there are no functions to the assistant

the tokens are In’put’

1 Like

I can see that you have the file_search tool enabled along with an attached vector store which would explain the 15k input tokens.

1 Like

Thank you for the help, we’ll have to deal with it it seems,
but they should make it more obvious for the developers/consumers that the tools could consume this much tokens in one go.
Yours Faithfully, Dericom

1 Like