dspy.LM against an OpenAI-compatible Chat Completions endpoint. You configure the Root and Sub roles separately in config/fleet.toml.
Shipped configuration
The shipped configuration uses a DeepSeek model through the Databricks Unity AI Gateway for both roles.config/fleet.toml
.env:
.env
https base URL whose path is exactly /ai-gateway/mlflow/v1.
Use a different provider
1
Set the model ID
Set
model in each role. Fleet adds the openai/ prefix when the ID has no provider prefix, so gpt-4o-mini becomes openai/gpt-4o-mini.2
Name the credential variable
Set
api_key_env to the name of the environment variable that holds the key. Fleet never reads secrets directly from config/fleet.toml.3
Set the endpoint
Set either
base_url to a literal URL or base_url_env to a variable name. You can’t set both in one role.4
Restart Fleet
Fleet reads
config/fleet.toml only at startup.config/fleet.toml