This commit adds support for setting custom HTTP headers for all AI API requests via the AI_HTTP_HEADERS environment variable. Usage: AI_HTTP_HEADERS="customheader1: hello, customheader2: world" The environment variable accepts a comma-separated list of header:value pairs. These headers will be applied to all AI requests made through both the worker (AI agent jobs) and the API (AI proxy requests). Changes: - backend/windmill-worker/src/ai_executor.rs: Parse and apply custom headers - backend/windmill-api/src/ai.rs: Parse and apply custom headers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
Windmill Backend
This folder holds all backend components, the src/ folder only contains files used to build the "root" binary.
Components
| name | description |
|---|---|
| windmill-api | The API server, exposing functionality to other components and the frontend |
| windmill-audit | Contains audit functionality, allowing different components to record important actions |
| windmill-common | Common code shared by all crates |
| windmill-queue | Contains job & flow queuing functionality, commonly written to by the API server and read from by workers |
| windmill-worker | The worker. Used to process and execute flows & jobs. |
| parsers | Contains code to parse signatures in different langauges. |
Compile sqlx for offline ci
cargo sqlx prepare --workspace -- --bin windmill --features enterprise