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. Use1.service(required): Eitherchat-completionorvector-embeddings.configurations(required): A list of 1–64 distinct model and interface pairs for this service. Each entry has these fields:model(required): Thehf://model identifier consumers use for discovery. In API requests, consumers use the model name the backend accepts.interface(required): Useopenai-chat-completions-v1for chat completions oropenai-embeddings-v1for embeddings.execution(optional): To allow leases, setexecution.backendto the exact name underbackends:inconfig.yaml. An unknown name prevents startup. Omit the entireexecutionblock 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