pip install -U dspy
LM
interface. Configure the LM with TrueFoundry’s gateway URL and your API key:
your-truefoundry-api-key
with your actual TrueFoundry API keyyour-truefoundry-gateway-url
with your TrueFoundry Gateway URLopenai/anthropic-account/claude-4
with your desired model using the openai/
prefix