{ "module": "openai-consumer", "version": "1", "slug": "openai", "capabilities": [ "container-runtime" ], "requires": [ "model-access" ], "binds": { "model-access": "${dir:state}/model.json" }, "secrets": { "model-access": "${dir:state}/api-key" }, "resources": [ { "id": "state", "type": "directory", "mode": "0700", "place": "." }, { "id": "config", "type": "directory", "mode": "0700" }, { "id": "apply", "type": "process", "name": "openai-consumer-apply", "artifact": "code", "run": [ "node", "apply/index.js" ], "schedule": "*/5 * * * *", "env": { "MESH_MODEL_ACCESS_SECRET_FILE": "${dir:state}/api-key", "MESH_MODEL_ACCESS_BIND_FILE": "${dir:state}/model.json", "MESH_OPENAI_ENV_FILE": "${dir:state}/config/openai.env", "MESH_OPENAI_CREDENTIALS_FILE": "${dir:state}/config/auth.json" } } ], "build": { "artifacts": [ { "name": "code", "kind": "bundle", "language": "typescript", "entrypoints": [ "apply/index.js" ] } ] } }