Chat can be configured to use tools and read files at the same time (what is logical) but completion prioritizes reading files.
Solutions:
- files can be loaded before (possible overhead when files are not needed to answer the question in the prompt)
- file procesing can be defined as tool that can be used if model needs them