Cluade usage as an llm when code is running

if i run the code and it needs to load 10 txt files to summarize them, will it use clude as the llm or i can use local lmstudio for that?