The RemoteCompiler speaks a small HTTP contract. Implement this contract to
host your own compile service (self-hosted fine-tuning pipeline, third-party
adapter-training provider, etc.).
POST <endpoint>
Content-Type: application/json
Authorization: Bearer <api_key> # optional
Accept: application/zip
{
"spec": {
"name": "classify",
"description": "Classify sentiment as pos/neg.",
"examples": [{"input": "...", "output": "..."}],
"input_schema": null,
"output_schema": null
}
}
- Status 200: body is the raw
.chibundle (application/zip). See .chi format for required members. - Status 4xx/5xx: body is treated as an opaque error message and
surfaced as
CompilerErroron the client.
The service MUST return a valid .chi bundle:
manifest.jsonwithschema_version: 1,name,description,base_model,adapter_format: "gguf-lora",created_at,chimera_version.adapter.gguf— LoRA adapter in GGUF format.prompts.json—{"system": str, "user_template": str, "stop": list[str]}.spec.json— the requestspecJSON-serialized.metadata.json— free-form; at minimum SHOULD includecompiler_backend,base_model_sha256.
chimera.function_synthesis.compilers.remote.RemoteCompilerchimera fs compile --compiler remote --endpoint <URL> --api-key <KEY>
None bundled. See chimera/function_synthesis/compilers/mock.py for a
zero-network stub suitable for development.