Hugging Face · Arazzo Workflow
Hugging Face Chat Completion with Model Discovery
Version 1.0.0
Discover an available router model, confirm it exists, then run an OpenAI-compatible chat completion.
Provider
Workflows
chat-completion-with-model-discovery
Confirm a router model is available and run a chat completion against it.
Lists router models, retrieves the requested model record to confirm it is servable, and then creates a chat completion using that model.
1
listRouterModels
listModels
List the models currently available through the inference providers router so the requested model can be confirmed before billing a completion.
2
confirmModel
getModel
Fetch the requested model record from the router to confirm it exists and is servable. Branches to the chat completion on success.
3
createChat
createChatCompletion
Send an OpenAI-compatible chat completion request with a system and user message; the router selects the optimal provider automatically.