Code Example: Organize your configuration
This folder contains the code for the Guides » Operations » Organize your configuration page in the documentation.
The example shows how to:
- Split your configuration into multiple files that reference each other.
- Enable file system access for MiniJinja templates to reuse shared snippets.
Running the Example
- Launch the TensorZero Gateway, TensorZero UI, and Postgres with
docker compose up. - Run an inference:
curl -X POST "http://localhost:3000/openai/v1/chat/completions" \ -H "Content-Type: application/json" \ -d '{ "model": "tensorzero::function_name::functionA", "messages": [ { "role": "user", "content": "Share a fun fact about artificial intelligence." } ] }'