Offers

Advertise the models and APIs your provider serves, and choose which offers consumers can lease.

An offer tells consumers which model they can use and which API to call. To let them lease access, link the offer to a configured backend. Consumers see the model, service, interface, and offer ID. The backend name, address, and credentials stay private.

Configuration format

Save each offer as a separate YAML file in offers/ next to the weftd config.yaml. weftd reads these files at startup.

version: 1
service: chat-completion
configurations:
  - model: hf://Qwen/Qwen2.5-1.5B-Instruct
    interface: openai-chat-completions-v1
    execution:
      backend: inference
  • version (required): The offer format version. Use 1.
  • service (required): Either chat-completion or vector-embeddings.
  • configurations (required): A list of 1–64 distinct model and interface pairs for this service. Each entry has these fields:
    • model (required): The hf:// model identifier consumers use for discovery. In API requests, consumers use the model name the backend accepts.
    • interface (required): Use openai-chat-completions-v1 for chat completions or openai-embeddings-v1 for embeddings.
    • execution (optional): To allow leases, set execution.backend to the exact name under backends: in config.yaml. An unknown name prevents startup. Omit the entire execution block for a discovery-only entry: consumers can find it but cannot lease it.

Examples

# offers/chat.yaml
version: 1
service: chat-completion
configurations:
  - model: hf://Qwen/Qwen2.5-1.5B-Instruct
    interface: openai-chat-completions-v1
    execution:
      backend: vllm
# offers/embeddings.yaml
version: 1
service: vector-embeddings
configurations:
  - model: hf://Qwen/Qwen3-Embedding-0.6B
    interface: openai-embeddings-v1
    execution:
      backend: tei