Connectivity
Consumers must be able to reach your provider over UDP to 3️⃣ list offers, 4️⃣ request a session, and 5️⃣ send a chat request.
sequenceDiagram
accTitle: How a provider shares a model
accDescr: The provider announces its service to discovery peers. A consumer finds the provider, lists its offers, and requests a lease. If the consumer is allowed and the backend is available, the provider grants the lease and forwards requests to the model server.
participant D as Discovery peers
participant C as Consumer
participant P as Provider
participant B as Model server
P->>D: 1️⃣ Announce a service
C->>D: 2️⃣ Find providers for the service
D-->>C: Provider peer ID
C->>P: 3️⃣ List offers
P-->>C: Available models and offer IDs
C->>P: 4️⃣ Request a session
P-->>C: Grant a lease
C->>P: 5️⃣ Send a chat request
P->>B: 6️⃣ Forward the request
B-->>P: Model’s reply
P-->>C: Return the reply
Consumers must be able to reach your provider over UDP to 3️⃣ list offers, 4️⃣ request a session, and 5️⃣ send a chat request.
Choose which consumers may 3️⃣ list offers and 4️⃣ request a session. Only the lease holder can 5️⃣ send requests through that session.
Tell Weft how to reach your model server and how long a consumer can lease it.
Advertise the models and APIs your provider serves, and choose which offers consumers can lease.
Check inbound connectivity, offer publication, and the private backend connection.