How to set LM Studio as the LLM provider in CrewAI?

my_llm = LLM(model=“lm_studio/llama-3.2-3b-instruct”, base_url=“http://127.0.0.1:1234/v1”, api_key=“asdf”)

This is what works for me.

1 Like